diff --git a/src/collection/collectionwatcher.cpp b/src/collection/collectionwatcher.cpp index 07273f21d..1c6976ecf 100644 --- a/src/collection/collectionwatcher.cpp +++ b/src/collection/collectionwatcher.cpp @@ -941,7 +941,7 @@ void CollectionWatcher::AddChangedSong(const QString &file, const Song &matching } -void CollectionWatcher::PerformEBUR128Analysis(Song &song) { +void CollectionWatcher::PerformEBUR128Analysis(Song &song) const { if (!song_ebur128_loudness_analysis_) return; diff --git a/src/collection/collectionwatcher.h b/src/collection/collectionwatcher.h index 86f3eef13..482074fc3 100644 --- a/src/collection/collectionwatcher.h +++ b/src/collection/collectionwatcher.h @@ -199,7 +199,7 @@ class CollectionWatcher : public QObject { static void AddChangedSong(const QString &file, const Song &matching_song, const Song &new_song, ScanTransaction *t); - void PerformEBUR128Analysis(Song &song); + void PerformEBUR128Analysis(Song &song) const; quint64 FilesCountForPath(ScanTransaction *t, const QString &path); quint64 FilesCountForSubdirs(ScanTransaction *t, const CollectionSubdirectoryList &subdirs, QMap &subdir_files_count);