fix #6227, ‘old_peak_path()’ does not exist on win.
authorRobin Gareus <robin@gareus.org>
Thu, 2 Apr 2015 16:51:20 +0000 (18:51 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 2 Apr 2015 16:51:20 +0000 (18:51 +0200)
or rather mountpoint() does not. in any case
there never was a windows release without libsndfile, so checking for peaks pre-libsndfile
is moot.

libs/ardour/audiofilesource.cc

index 6d9414a5cb6c20368af50ff52424576a3ccf1c95..2523a85b1a6c74ce02e871288794c0cca1a517dc 100644 (file)
@@ -205,12 +205,12 @@ AudioFileSource::find_broken_peakfile (string peak_path, string audio_path)
                /* Nasty band-aid for older sessions that were created before we
                   used libsndfile for all audio files.
                */
-
-
+#ifndef PLATFORM_WINDOWS // there's no old_peak_path() for windows
                str = old_peak_path (audio_path);
                if (Glib::file_test (str, Glib::FILE_TEST_EXISTS)) {
                        peak_path = str;
                }
+#endif
        }
 
        return peak_path;