From 192e1c61567e761b7c64848e3f3742ac12c6928b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 2 Apr 2015 18:51:20 +0200 Subject: [PATCH] =?utf8?q?fix=20#6227,=20=E2=80=98old=5Fpeak=5Fpath()?= =?utf8?q?=E2=80=99=20does=20not=20exist=20on=20win.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/audiofilesource.cc b/libs/ardour/audiofilesource.cc index 6d9414a5cb..2523a85b1a 100644 --- a/libs/ardour/audiofilesource.cc +++ b/libs/ardour/audiofilesource.cc @@ -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; -- 2.30.2