Group the Rec and Monitor buttons together. Group the Solo Isolate and Lock buttons...
[ardour.git] / gtk2_ardour / utils_videotl.cc
index 2e250b2cee29321b140419e6f815afa2c9a2e216..3b5882905b69efa9544038b405f1939770e04f0b 100644 (file)
@@ -151,6 +151,13 @@ VideoUtils::video_map_path (std::string server_docroot, std::string filepath)
 {
        std::string rv = filepath;
 
+       /* strip docroot */
+       if (server_docroot.length() > 0) {
+               if (rv.compare(0, server_docroot.length(), server_docroot) == 0 ) {
+                       rv = rv.substr(server_docroot.length());
+               }
+       }
+
        /* replace all G_DIR_SEPARATOR with '/' */
        size_t look_here = 0;
        size_t found_here;
@@ -159,13 +166,6 @@ VideoUtils::video_map_path (std::string server_docroot, std::string filepath)
                look_here = found_here + 1;
        }
 
-       /* strip docroot */
-       if (server_docroot.length() > 0) {
-               if (rv.compare(0, server_docroot.length(), server_docroot) == 0 ) {
-                       rv = rv.substr(server_docroot.length());
-               }
-       }
-
        CURL *curl;
        char *ue;
        curl = curl_easy_init();