diff options
author | Robin Gareus <robin@gareus.org> | 2014-04-19 02:03:43 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-04-19 02:03:43 +0200 |
commit | 4fd1a5edd57e9f0422c140986668d1fccba4bc82 (patch) | |
tree | 2477563bbdfa88cd5c0b98cd1b9f84d27b0f39bf /gtk2_ardour/add_video_dialog.cc | |
parent | ce72458d0934c009cc716b5b3171178c34df2152 (diff) |
videotimeline: path related fixes for windows
Diffstat (limited to 'gtk2_ardour/add_video_dialog.cc')
-rw-r--r-- | gtk2_ardour/add_video_dialog.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/add_video_dialog.cc b/gtk2_ardour/add_video_dialog.cc index 57938ac3f1..bbf2cda81d 100644 --- a/gtk2_ardour/add_video_dialog.cc +++ b/gtk2_ardour/add_video_dialog.cc @@ -313,6 +313,10 @@ AddVideoDialog::file_name (bool &local_file) CURL *curl; curl = curl_easy_init(); char *ue = curl_easy_unescape(curl, uri.c_str(), uri.length(), &plen); +#ifdef PLATFORM_WINDOWS + char *tmp; + while (tmp = strchr(ue, '/')) *tmp = '\\'; +#endif std::string path = video_get_docroot(Config) + ue; if (!::access(path.c_str(), R_OK)) { uri = path; |