Comment 0 for bug 1735996

Revision history for this message
Uwe Klotz (uklotzde-deactivatedaccount) wrote : Repeated reloading of cover art

Cover art for the same track might be requested from UI components like widgets in the library, the cover art display on the deck and the spinnies almost concurrently. The cover art cache accepts multiple requests for the same track if the cover is not cached already, although all requests reference the same file. Why? Because the requestId conatains both the requestor and the cover hash.

As a consequence multiple subsequent read operations of the same cover art are performed. For embedded cover art this is obvious from the logs, because a SoundSourceProxy is created and embedded cover art is parsed repeatedly, e.g. when loading a track into a deck.

Pending requests for the same cover hash need to be combined instead of creating new requests.