From bbd7b2aeea5d8c1a260ce4b43b5c360e793d369a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 10 Jan 2017 22:38:43 +0100 Subject: 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) --- gtk2_ardour/utils_videotl.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/utils_videotl.cc') diff --git a/gtk2_ardour/utils_videotl.cc b/gtk2_ardour/utils_videotl.cc index d2bec87d9e..3933022adc 100644 --- a/gtk2_ardour/utils_videotl.cc +++ b/gtk2_ardour/utils_videotl.cc @@ -47,6 +47,8 @@ using namespace PBD; using namespace ARDOUR; using namespace VideoUtils; +unsigned int VideoUtils::harvid_version = 0x0; + bool VideoUtils::confirm_video_outfn (Gtk::Window& parent, std::string outfn, std::string docroot) { @@ -111,7 +113,11 @@ VideoUtils::video_get_docroot (ARDOUR::RCConfiguration* config) #ifndef PLATFORM_WINDOWS return X_("/"); #else - return X_("C:\\"); + if (harvid_version >= 0x000802) { // 0.8.2 + return X_(""); + } else { + return X_("C:\\"); + } #endif } -- cgit v1.2.3