Fixes case where audiofiles used wrong peakfiles
[ardour.git] / libs / ardour / session_state.cc
index 2880b2c3681907a25383e3011ca880924a080178..0562d1801ce6643a3f91801291a7d406da496227 100644 (file)
@@ -3052,7 +3052,7 @@ Session::cleanup_sources (CleanupReport& rep)
                                  or for the first channel of embedded files. it will miss
                                  some peakfiles for other channels
                               */
-               string peakpath = peak_path (base);
+               string peakpath = construct_peak_filepath (base);
 
                if (Glib::file_test (peakpath.c_str(), Glib::FILE_TEST_EXISTS)) {
                        if (::g_unlink (peakpath.c_str()) != 0) {