summaryrefslogtreecommitdiff
path: root/gtk2_ardour/video_timeline.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-06-13 15:35:41 +0200
committerRobin Gareus <robin@gareus.org>2013-06-13 17:17:28 +0200
commit489121ca2066352bd890b3e779527e803dadfcb6 (patch)
tree0d09ac6b12ec5b5b264322e705624632c9c7da06 /gtk2_ardour/video_timeline.cc
parenta1e3cee926e3faa1eb3e68b86349a59e5b3ae4d0 (diff)
vtl: clean-up "Remove Video" action state
Diffstat (limited to 'gtk2_ardour/video_timeline.cc')
-rw-r--r--gtk2_ardour/video_timeline.cc3
1 files changed, 3 insertions, 0 deletions
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;
}