X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmodules%2Fsdl%2Fconsumer_sdl_preview.c;h=1d8494374aaa124013de413b7f6812b8684386ce;hb=b41fc3efd457b709d4f9867273f6d0da8921b904;hp=db2cc40206ec5c897eb953af587b48264aa6662d;hpb=8b9aa0d55d7a04ee7f98fa6f1c6209a6522ea28e;p=mlt diff --git a/src/modules/sdl/consumer_sdl_preview.c b/src/modules/sdl/consumer_sdl_preview.c index db2cc402..1d849437 100644 --- a/src/modules/sdl/consumer_sdl_preview.c +++ b/src/modules/sdl/consumer_sdl_preview.c @@ -263,9 +263,6 @@ static void *consumer_thread( void *arg ) // Get the speed of the frame double speed = mlt_properties_get_double( MLT_FRAME_PROPERTIES( frame ), "_speed" ); - // Determine which speed to use - double use_speed = speed; - // Lock during the operation mlt_service_lock( MLT_CONSUMER_SERVICE( consumer ) ); @@ -311,13 +308,13 @@ static void *consumer_thread( void *arg ) mlt_consumer_put_frame( this->active, frame ); } // If we aren't playing normally, then use the still - else if ( use_speed != 1 ) + else if ( speed != 1 ) { if ( !mlt_consumer_is_stopped( this->play ) ) mlt_consumer_stop( this->play ); if ( mlt_consumer_is_stopped( this->still ) ) { - this->last_speed = use_speed; + this->last_speed = speed; this->active = this->still; this->ignore_change = 0; mlt_consumer_start( this->still ); @@ -331,7 +328,7 @@ static void *consumer_thread( void *arg ) mlt_consumer_stop( this->still ); if ( mlt_consumer_is_stopped( this->play ) ) { - this->last_speed = use_speed; + this->last_speed = speed; this->active = this->play; this->ignore_change = 25; mlt_consumer_start( this->play );