summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-04-02 18:06:02 +0200
committerRobin Gareus <robin@gareus.org>2013-04-02 18:06:47 +0200
commite06ff1cf295f72ee2e33ac8af2b4ec3d59e652aa (patch)
tree1fd508a08152d2eec180ee6b92bb70bf6d3d5f28 /gtk2_ardour/ardour_ui.cc
parent467b13722245633b7ccc5964ffe319187525fd2b (diff)
vtl: update session start/end only when adding (or dragging) the video
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 12b15c688a..931ceadd21 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -3541,6 +3541,11 @@ ARDOUR_UI::add_video (Gtk::Window* float_window)
_session->add_extra_xml (*node);
_session->set_dirty ();
+ _session->maybe_update_session_range(
+ std::max(video_timeline->get_offset(), (ARDOUR::frameoffset_t) 0),
+ std::max(video_timeline->get_offset() + video_timeline->get_duration(), (ARDOUR::frameoffset_t) 0));
+
+
if (add_video_dialog->launch_xjadeo() && local_file) {
editor->set_xjadeo_sensitive(true);
editor->toggle_xjadeo_proc(1);