}
}
-
-
-
+void CWindow::stop_playback(int wait)
+{
+ playback_engine->stop_playback(wait);
+}
void CWindow::run()
{
if(position)
{
- playback_engine->que->send_command(CURRENT_FRAME,
- CHANGE_NONE,
- mwindow->edl,
- 1);
+ refresh_frame(CHANGE_NONE);
}
gui->lock_window("CWindow::update 2");
gui->timebar->update(1);
}
- if(!mwindow->edl->session->cwindow_scrollbars)
- gui->zoom_panel->update(_(AUTO_ZOOM));
- else
- gui->zoom_panel->update(mwindow->edl->session->cwindow_zoom);
+ double zoom = !mwindow->edl->session->cwindow_scrollbars ?
+ 0 :mwindow->edl->session->cwindow_zoom;
+ gui->zoom_panel->update(zoom);
gui->canvas->update_zoom(mwindow->edl->session->cwindow_xscroll,
mwindow->edl->session->cwindow_yscroll,
return 1;
}
+void CWindow::refresh_frame(int change_type, EDL *edl)
+{
+ mwindow->refresh_mixers();
+ playback_engine->refresh_frame(change_type, edl);
+}
-
+void CWindow::refresh_frame(int change_type)
+{
+ refresh_frame(change_type, mwindow->edl);
+}
CWindowRemoteHandler::
CWindowRemoteHandler(RemoteControl *remote_control)