X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Frenderengine.C;h=6bc828a37ad37bbd03f1daa72bbb449f677de00c;hp=faba961583a5ce347196f77099a9d006f9a6960e;hb=eb7b1a0bb84ed4f40b651b74ff72e63b97cce1c2;hpb=253199c03ee8a0247e1ee7f9ba063c320f705aea diff --git a/cinelerra-5.1/cinelerra/renderengine.C b/cinelerra-5.1/cinelerra/renderengine.C index faba9615..6bc828a3 100644 --- a/cinelerra-5.1/cinelerra/renderengine.C +++ b/cinelerra-5.1/cinelerra/renderengine.C @@ -467,16 +467,17 @@ void RenderEngine::run() close_output(); - if( playback_engine && playback_engine->is_playing_back ) { - double position = interrupted ? - playback_engine->get_tracking_position() : - command->get_direction() == PLAY_FORWARD ? - command->end_position : - command->start_position; + if( playback_engine ) { + double position = command->command == CURRENT_FRAME ? command->playbackstart : + playback_engine->is_playing_back && !interrupted ? + ( command->get_direction() == PLAY_FORWARD ? + command->end_position : command->start_position ) : + playback_engine->get_tracking_position() ; if( command->displacement ) { position -= 1./command->get_edl()->session->frame_rate; if( position < 0 ) position = 0; } + playback_engine->command->command = STOP; playback_engine->is_playing_back = 0; playback_engine->tracking_position = position; playback_engine->stop_tracking();