diff options
Diffstat (limited to 'src/track/track.cpp')
-rw-r--r-- | src/track/track.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/track/track.cpp b/src/track/track.cpp index 06be8994a1..3f620a17bf 100644 --- a/src/track/track.cpp +++ b/src/track/track.cpp @@ -920,7 +920,12 @@ void Track::setCoverInfo(const CoverInfoRelative& coverInfo) { } } -CoverInfo Track::getCoverInfo() const { +CoverInfoRelative Track::getCoverInfo() const { + QMutexLocker lock(&m_qMutex); + return m_record.getCoverInfo(); +} + +CoverInfo Track::getCoverInfoWithLocation() const { QMutexLocker lock(&m_qMutex); return CoverInfo(m_record.getCoverInfo(), m_fileInfo.absoluteFilePath()); } |