summaryrefslogtreecommitdiff
path: root/gtk2_ardour/video_server_dialog.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-01-10 22:38:43 +0100
committerRobin Gareus <robin@gareus.org>2017-01-10 22:38:43 +0100
commitbbd7b2aeea5d8c1a260ce4b43b5c360e793d369a (patch)
treed6f3f9e5cff2d41465e57183050775545c015e52 /gtk2_ardour/video_server_dialog.cc
parent9ddf80225b02bd7c9659c60e22301547fd27ec88 (diff)
Prepare for windows video support on all drive-letters.
* add harvid version detection (>= 0.8.2 is needed) * special case empty docroot (for windows, pass drive-letter)
Diffstat (limited to 'gtk2_ardour/video_server_dialog.cc')
-rw-r--r--gtk2_ardour/video_server_dialog.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/video_server_dialog.cc b/gtk2_ardour/video_server_dialog.cc
index 29872fc975..a8c2bd3ea3 100644
--- a/gtk2_ardour/video_server_dialog.cc
+++ b/gtk2_ardour/video_server_dialog.cc
@@ -101,6 +101,11 @@ VideoServerDialog::VideoServerDialog (Session* s)
<< endmsg;
}
+#ifdef PLATFORM_WINDOWS
+ if (VideoUtils::harvid_version >= 0x000802) {
+ /* empty docroot -> all drive letters */
+ } else
+#endif
if (docroot_entry.get_text().empty()) {
std::string docroot = Glib::path_get_dirname(_session->session_directory().root_path());
if ((docroot.empty() || docroot.at(docroot.length()-1) != '/')) { docroot += "/"; }