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:
parent
ab3040f789
commit
b9d22839f1
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user