diff options
author | Robin Gareus <robin@gareus.org> | 2017-01-10 22:38:43 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-01-10 22:38:43 +0100 |
commit | bbd7b2aeea5d8c1a260ce4b43b5c360e793d369a (patch) | |
tree | d6f3f9e5cff2d41465e57183050775545c015e52 /gtk2_ardour/utils_videotl.cc | |
parent | 9ddf80225b02bd7c9659c60e22301547fd27ec88 (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/utils_videotl.cc')
-rw-r--r-- | gtk2_ardour/utils_videotl.cc | 8 |
1 files changed, 7 insertions, 1 deletions
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 } |