X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fvicon.C;h=8ae7a7c0ba667a10ad2978113b1b6fc52bde14db;hb=21eb2e0b479adf7bf846b835e5c7d9613b6f1a6d;hp=9c41ccf1ea915d20548a0f755f6676ea92249abe;hpb=c279e21fc2394a7908bbd1ba8c79b116fe9fb14a;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/vicon.C b/cinelerra-5.1/guicast/vicon.C index 9c41ccf1..8ae7a7c0 100644 --- a/cinelerra-5.1/guicast/vicon.C +++ b/cinelerra-5.1/guicast/vicon.C @@ -105,6 +105,7 @@ VIconThread(BC_WindowBase *wdw, int vw, int vh) this->refresh_rate = VICON_RATE; done = 0; interrupted = -1; + stop_age = 0; } VIconThread:: @@ -130,6 +131,8 @@ start_drawing() wdw->set_active_subwindow(view_win); if( interrupted < 0 ) draw_lock->unlock(); + timer->update(); + timer->subtract(-stop_age); interrupted = 0; wdw->unlock_window(); } @@ -141,6 +144,7 @@ stop_drawing() set_view_popup(0); if( !interrupted ) interrupted = 1; + stop_age = timer->get_difference(); wdw->unlock_window(); }