Skip to content

Commit

Permalink
Fix behavior of REW/FF when stopped.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed May 25, 2011
1 parent f73505c commit 66a4ffb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 5 additions & 9 deletions docs/mvcp.txt
Expand Up @@ -185,7 +185,7 @@ USET {unit} {key=value}

Property "points" determines whether the playback engine restricts the
playback region to the in and out points. It takes one of the following
values: use, ignore.
values: use, ignore. (not currently implemented)

UGET {unit} {key}
Get a unit's configuration property.
Expand Down Expand Up @@ -262,21 +262,17 @@ REW {unit}
(200%).
If the unit is stopped, then the frame position is reset to the first
frame. First frame depends upon the "points" unit configuration property
and whether an in point has been established for the clip using the SIN
command.
Set the currently loaded clip's in point.
Frame is zero-based and absolute. It is not dependent upon the clip's
current in point.
A frame-number of -1, resets the in point to 0.
(not currently implemented) and whether an in point has been established
for the clip using the SIN command.

FF {unit}
Fast forward the unit.
If the unit it playing, then FF sets the playback speed to 2000 (200%
in reverse).
If the unit is stopped, then the frame position is reset to the first
frame. First frame depends upon the "points" unit configuration property
and whether an in point has been established for the clip using the SIN
command.
(not currently implemented) and whether an in point has been established
for the clip using the SIN command.

STEP {unit} {number-of-frames}
Adjust the current frame position by the number of frames specified.
Expand Down
8 changes: 6 additions & 2 deletions src/melted/melted_unit_commands.c
Expand Up @@ -343,7 +343,9 @@ int melted_rewind( command_argument cmd_arg )
melted_unit unit = melted_get_unit(cmd_arg->unit);
if ( unit == NULL )
return RESPONSE_INVALID_UNIT;
else
else if ( melted_unit_has_terminated( unit ) )
melted_unit_change_position( unit, 0, 0 );
else
melted_unit_play( unit, -2000 );
return RESPONSE_SUCCESS;
}
Expand Down Expand Up @@ -379,7 +381,9 @@ int melted_ff( command_argument cmd_arg )
melted_unit unit = melted_get_unit(cmd_arg->unit);
if ( unit == NULL )
return RESPONSE_INVALID_UNIT;
else
else if ( melted_unit_has_terminated( unit ) )
melted_unit_change_position( unit, 0, 0 );
else
melted_unit_play( unit, 2000 );
return RESPONSE_SUCCESS;
}
Expand Down

0 comments on commit 66a4ffb

Please sign in to comment.