13
0

vtl: import audio at video-offset, forget offset on "Remove Video"

This commit is contained in:
Robin Gareus 2013-08-04 17:23:58 +02:00
parent f5c52f500a
commit 68fc5bbf6c

View File

@ -3525,7 +3525,10 @@ ARDOUR_UI::add_video (Gtk::Window* float_window)
return;
}
if (!transcode_video_dialog->get_audiofile().empty()) {
editor->embed_audio_from_video(transcode_video_dialog->get_audiofile());
editor->embed_audio_from_video(
transcode_video_dialog->get_audiofile(),
video_timeline->get_offset()
);
}
switch (transcode_video_dialog->import_option()) {
case VTL_IMPORT_TRANSCODED:
@ -3589,6 +3592,10 @@ ARDOUR_UI::remove_video ()
video_timeline->close_session();
editor->toggle_ruler_video(false);
/* reset state */
video_timeline->set_offset_locked(false);
video_timeline->set_offset(0);
/* delete session state */
XMLNode* node = new XMLNode(X_("Videotimeline"));
_session->add_extra_xml(*node);