diff options
author | Robin Gareus <robin@gareus.org> | 2013-06-13 00:54:43 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-06-13 00:58:19 +0200 |
commit | 6b480bb2f7d16288b5fa0d35f827ad32f88a6978 (patch) | |
tree | 702d8207fa264514fd85a655472f2b091ed91da2 /gtk2_ardour/video_timeline.cc | |
parent | 67704f8de245937252cca1897f7b99f40f1fccfb (diff) |
vtl: make "Remove Video" insensitive if N/A
Diffstat (limited to 'gtk2_ardour/video_timeline.cc')
-rw-r--r-- | gtk2_ardour/video_timeline.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/video_timeline.cc b/gtk2_ardour/video_timeline.cc index 7bf42299d7..72b0900e16 100644 --- a/gtk2_ardour/video_timeline.cc +++ b/gtk2_ardour/video_timeline.cc @@ -465,6 +465,7 @@ 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; + GuiUpdate("video-unavailable"); return false; } video_duration = _duration * _session->nominal_frame_rate() / video_file_fps; @@ -531,6 +532,7 @@ VideoTimeLine::video_file_info (std::string filename, bool local) #endif } VtlUpdate(); + GuiUpdate("video-available"); return true; } @@ -591,6 +593,10 @@ VideoTimeLine::gui_update(std::string const & t) { editor->toggle_xjadeo_viewoption(6, 1); } else if (t == "xjadeo-window-letterbox-off") { editor->toggle_xjadeo_viewoption(6, 0); + } else if (t == "video-available") { + editor->set_close_video_sensitive(true); + } else if (t == "video-unavailable") { + editor->set_close_video_sensitive(false); } } |