X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fplaybackengine.C;h=802b7b610c24e04ed931085319a6310d3d0fa4f4;hb=3ac8199743f244669cc87ceef9c3cd23710552f3;hp=27d177c562ef0b1971579221d126ae52db42a9c7;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/playbackengine.C b/cinelerra-5.1/cinelerra/playbackengine.C index 27d177c5..802b7b61 100644 --- a/cinelerra-5.1/cinelerra/playbackengine.C +++ b/cinelerra-5.1/cinelerra/playbackengine.C @@ -358,7 +358,6 @@ void PlaybackEngine::run() wait_render_engine(); - // Read the new command que->input_lock->lock("PlaybackEngine::run"); if(done) return; @@ -369,7 +368,6 @@ void PlaybackEngine::run() //printf("PlaybackEngine::run 1 %d\n", command->command); - switch(command->command) { // Parameter change only @@ -423,4 +421,13 @@ void PlaybackEngine::run() } +void PlaybackEngine::stop_playback() +{ + que->send_command(STOP, CHANGE_NONE, 0, 0); + interrupt_playback(1); + renderengine_lock->lock("PlaybackEngine::stop_playback"); + if(render_engine) + render_engine->wait_done(); + renderengine_lock->unlock(); +}