Skip to content

Commit

Permalink
Avoid spamming the log when loading cover art of missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed May 3, 2020
1 parent 0f266a9 commit c64f033
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sources/soundsourceproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ TrackPointer SoundSourceProxy::importTemporaryTrack(
QImage SoundSourceProxy::importTemporaryCoverImage(
TrackFile trackFile,
SecurityTokenPointer pSecurityToken) {
if (!trackFile.checkFileExists()) {
// Silently ignore missing files to avoid spaming the log:
// https://bugs.launchpad.net/mixxx/+bug/1875237
return QImage();
}
TrackPointer pTrack = Track::newTemporary(
std::move(trackFile),
std::move(pSecurityToken));
Expand Down

0 comments on commit c64f033

Please sign in to comment.