X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fcwindow.C;h=7152f5a671206b40820044c6afe77d521063ca59;hb=60f8df69db9ddd8148bfc41a17bb0955b52a45e6;hp=29d545045e9a96ccfaf2cc6c6710c65c4e9cb2c9;hpb=0513350234a8dcd08e5a0117d5121724ef7b76b6;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/cwindow.C b/cinelerra-5.1/cinelerra/cwindow.C index 29d54504..7152f5a6 100644 --- a/cinelerra-5.1/cinelerra/cwindow.C +++ b/cinelerra-5.1/cinelerra/cwindow.C @@ -215,9 +215,10 @@ void CWindow::calculate_affected_autos(FloatAuto **x_auto, } } - - - +void CWindow::stop_playback(int wait) +{ + playback_engine->stop_playback(wait); +} void CWindow::run() { @@ -233,11 +234,7 @@ void CWindow::update(int position, if(position) { - mwindow->queue_mixers(mwindow->edl, CURRENT_FRAME,1,0,1,0); - playback_engine->que->send_command(CURRENT_FRAME, - CHANGE_NONE, - mwindow->edl, - 1); + refresh_frame(CHANGE_NONE); } gui->lock_window("CWindow::update 2"); @@ -308,8 +305,16 @@ int CWindow::update_position(double position) 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)