Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-4265

Mediaplayer does not handle unclean USB device removal well

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Inactive
    • Icon: Minor Minor
    • None
    • None
    • Multimedia
    • None

      After the switch to using MPD as a backend to the mediaplayer application via the existing abstraction provided by libqtappfw, testing shows that pulling a USB drive while in use by MPD / mediaplayer does not get handled well.  While the MPD and the app do not crash, the following is observed:

      • The playlist in the mediaplayer clears (good), but metadata for the currently playing track is not (bad).
      • The mediaplayer does not respond to pause input for the now dangling track.
      • There's a chance the previous issue would maybe fix itself with a new playlist coming in from MPD updating state, but in my tests MPD is unable to update when a USB drive is (re)inserted, an error about failing to set up inotify on the newly mounted directory under /media is logged.

      For now I'm leaving this as a low priority as it is not an immediate concern for the demo application, but if AGL keeps using MPD or the Qt demo mediaplayer, someone may want to investigate further and attempt to remediate the issues here.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            scottm Scott Murray
            scottm Scott Murray
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: