summaryrefslogtreecommitdiff
path: root/libs/ardour/sndfilesource.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-12-08 09:07:46 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2015-12-08 09:07:51 -0500
commit1c8ad40339e640cd08a84cae0946acb88b0b1b78 (patch)
tree7229b8b1ec1ca164c1947c2c2886bcda9930dba4 /libs/ardour/sndfilesource.cc
parent4dca26a6e7c009a3e186bd53faf11aa3fbe07f8f (diff)
touch peakfile after closing a SndFileSource
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
Diffstat (limited to 'libs/ardour/sndfilesource.cc')
-rw-r--r--libs/ardour/sndfilesource.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc
index 35fec82145..73361c33da 100644
--- a/libs/ardour/sndfilesource.cc
+++ b/libs/ardour/sndfilesource.cc
@@ -255,6 +255,7 @@ SndFileSource::close ()
if (_sndfile) {
sf_close (_sndfile);
_sndfile = 0;
+ file_closed ();
}
}