vtl: clean-up "Remove Video" action state

This commit is contained in:
Robin Gareus 2013-06-13 15:35:41 +02:00
parent a1e3cee926
commit 489121ca20
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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;
}