idx = -1;
edl = 0;
highlighted = 0;
- destroy = 1;
title[0] = 0;
zgui = 0;
}
void ZWindow::handle_done_event(int result)
{
- if( destroy )
+ stop_playback(1);
+ if( result )
mwindow->del_mixer(this);
idx = -1;
}
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)