mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 19:45:31 +01:00
Fix spotify image loading
This commit is contained in:
parent
c96d402f26
commit
5dc053827a
@ -803,10 +803,10 @@ void SpotifyClient::TryImageAgain(sp_image* image) {
|
||||
|
||||
// Free stuff
|
||||
image_callbacks_registered_[image] --;
|
||||
if (!image_callbacks_registered_[image]) {
|
||||
sp_image_remove_load_callback(image, &ImageLoaded, this);
|
||||
|
||||
// TODO: memory leak?
|
||||
// sp_image_remove_load_callback(image, &ImageLoaded, this);
|
||||
image_callbacks_registered_.remove(image);
|
||||
}
|
||||
|
||||
sp_image_release(image);
|
||||
pending_image_requests_.removeAt(index);
|
||||
|
@ -101,8 +101,7 @@ void SpotifySearchProvider::LoadArtAsync(int id, const Result& result) {
|
||||
return;
|
||||
}
|
||||
|
||||
QString image_id = result.metadata_.url().path();
|
||||
qLog(Debug) << __PRETTY_FUNCTION__ << image_id;
|
||||
QString image_id = QUrl(result.metadata_.art_automatic()).path();
|
||||
if (image_id.startsWith('/'))
|
||||
image_id.remove(0, 1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user