vtl: update session start/end only when adding (or dragging) the video
This commit is contained in:
parent
467b137222
commit
e06ff1cf29
|
@ -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);
|
||||
|
|
|
@ -523,11 +523,6 @@ VideoTimeLine::video_file_info (std::string filename, bool local)
|
|||
}
|
||||
flush_local_cache ();
|
||||
|
||||
_session->maybe_update_session_range(
|
||||
std::max(get_offset(), (ARDOUR::frameoffset_t) 0),
|
||||
std::max(get_offset() + get_duration(), (ARDOUR::frameoffset_t) 0)
|
||||
);
|
||||
|
||||
if (found_xjadeo() && local_file) {
|
||||
GuiUpdate("set-xjadeo-sensitive-on");
|
||||
if (vmonitor && vmonitor->is_started()) {
|
||||
|
|
Loading…
Reference in New Issue