X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fcinelerra%2Fzwindow.C;h=7f6d2800b8f0279c175bacaea9c5a0ea1ecae706;hb=f41ee8a0f00338fffb7fd6760a5ecd04c0101a41;hp=a6f6d73f8119c29120291817e891178de5ac86cc;hpb=2e28d225c343f02500594688bf8d0528df40600c;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/zwindow.C b/cinelerra-5.1/cinelerra/zwindow.C index a6f6d73f..7f6d2800 100644 --- a/cinelerra-5.1/cinelerra/zwindow.C +++ b/cinelerra-5.1/cinelerra/zwindow.C @@ -207,9 +207,10 @@ BC_Window* ZWindow::new_gui() void ZWindow::handle_done_event(int result) { + idx = -1; + stop_playback(1); if( destroy ) mwindow->del_mixer(this); - idx = -1; } void ZWindow::handle_close_event(int result) { @@ -219,8 +220,7 @@ void ZWindow::handle_close_event(int result) void ZWindow::change_source(EDL *edl) { if( this->edl == edl ) return; - if( !edl || !this->edl || this->edl->equivalent_output(edl) >= 0 ) - zgui->playback_engine->refresh_frame(CHANGE_ALL, edl); + zgui->playback_engine->refresh_frame(CHANGE_ALL, edl); if( this->edl ) this->edl->remove_user(); this->edl = edl;