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)
{
void ZWindow::change_source(EDL *edl)
{
- if( this->edl && edl != this->edl )
+ if( this->edl == edl ) return;
+ zgui->playback_engine->refresh_frame(CHANGE_ALL, edl);
+ if( this->edl )
this->edl->remove_user();
this->edl = edl;
- if( edl != 0 ) {
- zgui->playback_engine->refresh_frame(CHANGE_ALL, edl);
- }
}
void ZWindow::stop_playback(int wait)