vtl: fix video-monitor [dialog] crash

caused by closing a session and then opening another video session
-> the video-monitor session reference was outdated.
This commit is contained in:
Robin Gareus 2013-03-31 20:33:26 +02:00
parent ab3040f789
commit b9d22839f1

View File

@ -163,6 +163,10 @@ VideoTimeLine::close_session ()
video_filename = "";
video_duration = 0;
GuiUpdate("set-xjadeo-sensitive-off");
if (open_video_monitor_dialog) {
delete open_video_monitor_dialog;
}
open_video_monitor_dialog = 0;
}
/** load settings from session */
@ -216,6 +220,11 @@ VideoTimeLine::set_session (ARDOUR::Session *s)
video_file_info(propf->value(), local_file);
}
if (open_video_monitor_dialog) {
delete open_video_monitor_dialog;
}
open_video_monitor_dialog = 0;
node = _session->extra_xml (X_("Videomonitor"));
if (node) {
const XMLProperty* prop = node->property (X_("active"));