Does not allow another album art to be set after setting image source to an explicit file URI

Bug #1593356 reported by Jim Hodapp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-settings-components (Ubuntu)
New
Undecided
Unassigned

Bug Description

Trying to add complete cover/album art support for the Ubuntu Touch by allowing the album art to be set with a thumbnailer URI, e.g. "image://thumbnail/<URI>". This works fine. However, when I change the QML surrounding setting the source image for albumArtImage in MediaPlayerMenu.qml to handle the case where the thumbnailer could not find album art for a given track that it would then detect this error and set file:///usr/lib/arm-linux-gnueabihf/unity-scopes/mediascanner-music/album_missing.svg as the fallback image. Once I set this image, it seems that no other album artwork takes effect even though media-hub is passing a valid image URI to indicator-sound. The code that I'm trying to add that demonstrates this situation is (sits in the albumArtImage definition):

onStatusChanged: {
  if (albumArtImage.status === Image.Error) {
    console.debug("Hit an error while loading image, using fallback image")
    albumArtImage.source = "file:///usr/lib/arm-linux-gnueabihf/unity-scopes/mediascanner-music/album_missing.svg";
  }
}

Jim Hodapp (jhodapp)
summary: - Does not allow another album art to be set after setting to an explicit
- file URI
+ Does not allow another album art to be set after setting image source to
+ an explicit file URI
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.