mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-20 23:00:02 +01:00
fix crash on reverse playback
git-svn-id: svn://code.dyne.org/veejay/trunk@1045 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
@@ -524,8 +524,8 @@ int veejay_set_frame(veejay_t * info, long framenum)
|
||||
video_playback_setup *settings =
|
||||
(video_playback_setup *) info->settings;
|
||||
|
||||
if(framenum < 0)
|
||||
return -1;
|
||||
if(framenum < settings->min_frame_num)
|
||||
framenum = settings->min_frame_num;
|
||||
|
||||
if( framenum > settings->max_frame_num )
|
||||
framenum = settings->max_frame_num;
|
||||
|
||||
@@ -392,9 +392,7 @@ static int vj_perform_increase_sample_frame(veejay_t * info, long num)
|
||||
int num = end - ((int) ( (double)range*rand()/(RAND_MAX)));
|
||||
settings->current_frame_num = num;
|
||||
}
|
||||
#ifdef STRICT_CHECKING
|
||||
assert( settings->current_frame_num >= 0 );
|
||||
#endif
|
||||
|
||||
if (settings->current_frame_num < start || settings->current_frame_num >= end ) {
|
||||
switch (looptype) {
|
||||
case 2:
|
||||
|
||||
Reference in New Issue
Block a user