diff options
author | Robin Gareus <robin@gareus.org> | 2013-03-27 18:21:09 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-03-27 18:21:09 +0100 |
commit | b3fa4dd8f3e69ef8fc075545469d139ca5861ddb (patch) | |
tree | 18eca73a16b489a313fdd84e77e34196a24f0a6c /gtk2_ardour/video_timeline.cc | |
parent | ba7def458eacf300b24819b3e017e5a1b1daa5cd (diff) |
vtl: video sets session start/end markers.
Diffstat (limited to 'gtk2_ardour/video_timeline.cc')
-rw-r--r-- | gtk2_ardour/video_timeline.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/video_timeline.cc b/gtk2_ardour/video_timeline.cc index 3bcb397b68..398859c1a1 100644 --- a/gtk2_ardour/video_timeline.cc +++ b/gtk2_ardour/video_timeline.cc @@ -46,6 +46,9 @@ using namespace ARDOUR; using namespace PBD; using namespace Timecode; +#ifndef MAX +#define MAX(a, b) (((a) > (b)) ? (a) : (b)) +#endif VideoTimeLine::VideoTimeLine (PublicEditor *ed, ArdourCanvas::Group *vbg, int initial_height) : editor (ed) @@ -456,6 +459,7 @@ VideoTimeLine::translated_filename () bool VideoTimeLine::video_file_info (std::string filename, bool local) { + local_file = local; if (filename.at(0) == G_DIR_SEPARATOR || !local_file) { video_filename = filename; @@ -514,6 +518,11 @@ VideoTimeLine::video_file_info (std::string filename, bool local) } flush_local_cache (); + _session->maybe_update_session_range( + MAX(get_offset(), 0), + MAX(get_offset() + get_duration(), 0) + ); + if (found_xjadeo() && local_file) { GuiUpdate("set-xjadeo-sensitive-on"); if (vmonitor && vmonitor->is_started()) { |