diff options
author | Robin Gareus <robin@gareus.org> | 2013-06-10 19:43:23 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-06-10 19:43:23 +0200 |
commit | 8b5f990267622100b3a1a7ff6fa346282aca4dda (patch) | |
tree | 89547be96f14a3700a205a147180b0b0039bb9c2 /gtk2_ardour/video_monitor.cc | |
parent | f5a8e563e8c82dc5b3df6c753e2375ada2aa8ad7 (diff) |
vtl: send A/V offset to video-monitor when launched
Diffstat (limited to 'gtk2_ardour/video_monitor.cc')
-rw-r--r-- | gtk2_ardour/video_monitor.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/video_monitor.cc b/gtk2_ardour/video_monitor.cc index 7f9fd71da2..2e6f5157bf 100644 --- a/gtk2_ardour/video_monitor.cc +++ b/gtk2_ardour/video_monitor.cc @@ -496,7 +496,9 @@ VideoMonitor::set_offset (ARDOUR::frameoffset_t offset) video_frame_offset = floor(offset * _session->timecode_frames_per_second() / audio_frame_rate); } - // TODO remember if changed.. + if (video_offset == video_frame_offset) { return; } + video_offset = video_frame_offset; + std::ostringstream osstream1; osstream1 << -1 * video_frame_offset; process->write_to_stdin("set offset " + osstream1.str() + "\n"); } |