summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-06-13 00:55:04 +0200
committerRobin Gareus <robin@gareus.org>2013-06-13 00:58:19 +0200
commit27e2b09f632d7a2cb08fe338248800fd97cb3c06 (patch)
treef135c7848bf2fd4d44311829bb11594f39a49364 /gtk2_ardour/ardour_ui.cc
parent6b480bb2f7d16288b5fa0d35f827ad32f88a6978 (diff)
vtl: check if server's docroot matches ardour's config
NOTE: this breaks backwards compatibility with icsd and harvid < 0.3.0 which do not report their settings. It may also conflict with harvid running on localhost in a chroot. Ideally this will be a warning only. That the user can choose to ignore this and should get the option to stop the video-server and re-start it using a different docroot.
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index a7034a1677..346fcc3c63 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -3439,6 +3439,11 @@ ARDOUR_UI::start_video_server (Gtk::Window* float_window, bool popup_msg)
}
if (timeout <= 0) {
warning << _("Video-server was started but does not respond to requests...") << endmsg;
+ } else {
+ if (!ARDOUR_UI::instance()->video_timeline->check_server_docroot()) {
+ delete video_server_process;
+ video_server_process = 0;
+ }
}
}
return true;