From ed1f310f109279347906bbcb85757b5a54792e26 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 9 Apr 2013 04:05:07 +0200 Subject: vtl: rework session-needs-save logic * videotimeline now immediately marks the session dirty on every state-changing operation * video-montor is polled every 2.5 seconds for menu-relevant state info (ontop, OSD,..) and every 30 seconds for full state (window pos, size,..) * new interface to query the video-monitor for its state and wait for all replies - terminating the process and using ::wait() is no longer required * Ardour> quit and Ardour > close-session does no longer close the video session to enforce video-monitor state sync but uses above new interface --- gtk2_ardour/video_timeline.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk2_ardour/video_timeline.h') diff --git a/gtk2_ardour/video_timeline.h b/gtk2_ardour/video_timeline.h index 4bc3eb86c7..b80faa3b27 100644 --- a/gtk2_ardour/video_timeline.h +++ b/gtk2_ardour/video_timeline.h @@ -93,6 +93,7 @@ class VideoTimeLine : public sigc::trackable, public ARDOUR::SessionHandlePtr, p void flush_cache (); void save_session (); void close_session (); + void sync_session_state (); /* video-monitor does not actively report window/pos changes, query it */ float get_apv(); /* audio frames per video frame; */ ARDOUR::framecnt_t get_duration () { return video_duration;} ARDOUR::frameoffset_t get_offset () { return video_offset;} -- cgit v1.2.3