touch peakfile after closing a SndFileSource
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 8 Dec 2015 14:07:46 +0000 (09:07 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 8 Dec 2015 14:07:51 +0000 (09:07 -0500)
libsndfile (can|may) update the headers at close, which can lead to the file being marked newer than the peakfile,
thus causing a rebuild of the peakfile at session (re)load.

Originally detected by Grygorii

libs/ardour/sndfilesource.cc

index 35fec82145da704fa0069b9782fda62ff84405bc..73361c33da64553723ba8a4029045a52a6b86a13 100644 (file)
@@ -255,6 +255,7 @@ SndFileSource::close ()
        if (_sndfile) {
                sf_close (_sndfile);
                _sndfile = 0;
+               file_closed ();
        }
 }