From 489121ca2066352bd890b3e779527e803dadfcb6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 13 Jun 2013 15:35:41 +0200 Subject: [PATCH] vtl: clean-up "Remove Video" action state --- gtk2_ardour/ardour_ui.cc | 2 -- gtk2_ardour/video_timeline.cc | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 346fcc3c63..ad727d00d6 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -3564,8 +3564,6 @@ ARDOUR_UI::remove_video () node = new XMLNode(X_("Videomonitor")); _session->add_extra_xml(*node); stop_video_server(); - - editor->set_close_video_sensitive(false); } void diff --git a/gtk2_ardour/video_timeline.cc b/gtk2_ardour/video_timeline.cc index bf527914ba..8f68174997 100644 --- a/gtk2_ardour/video_timeline.cc +++ b/gtk2_ardour/video_timeline.cc @@ -124,6 +124,7 @@ VideoTimeLine::close_session () video_filename = ""; video_duration = 0; GuiUpdate("set-xjadeo-sensitive-off"); + GuiUpdate("video-unavailable"); } void @@ -465,6 +466,8 @@ VideoTimeLine::video_file_info (std::string filename, bool local) video_server_url, translated_filename(), video_file_fps, _duration, _start_offset, video_aspect_ratio)) { warning << _("Parsing video file info failed. Is the Video Server running? Is the file readable by the Video Server? Does the docroot match? Is it a video file?") << endmsg; + video_duration = 0; + GuiUpdate("set-xjadeo-sensitive-off"); GuiUpdate("video-unavailable"); return false; }