Skip to content

Commit

Permalink
AsyncImageProvider:: Add comment regarding getTrackByRef
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Jun 5, 2021
1 parent 054cb0f commit 92af1ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/skin/qml/asyncimageprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ void AsyncImageResponse::run() {
// a custom image, which is possible in Mixxx. We need to access the
// actual CoverInfo of the track instead of constructing a default
// instance on the fly.
//
// Unfortunately, TrackCollectionManager::getTrackByRef will not work
// when called from another thread (like this one). We need a solution
// for that.
CoverInfo coverInfo(CoverInfoRelative(), trackLocation);
coverInfo.type = CoverInfoRelative::METADATA;
CoverInfo::LoadedImage loadedImage = coverInfo.loadImage();
Expand Down

0 comments on commit 92af1ef

Please sign in to comment.