summaryrefslogtreecommitdiff
path: root/gtk2_ardour/video_timeline.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-04-09 04:05:07 +0200
committerRobin Gareus <robin@gareus.org>2013-04-09 04:05:46 +0200
commited1f310f109279347906bbcb85757b5a54792e26 (patch)
treed4f1dba2351bac25b83250fffe8a6bfdfba93e61 /gtk2_ardour/video_timeline.h
parent49ddf8ecce0027e5cb96de2d361aec8d74b3c921 (diff)
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
Diffstat (limited to 'gtk2_ardour/video_timeline.h')
-rw-r--r--gtk2_ardour/video_timeline.h1
1 files changed, 1 insertions, 0 deletions
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;}