Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133373

QMediaDevices discovers an unexisting device

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • None
    • 6.2.8
    • Multimedia
    • Linux/Other display system

      OS: Ubuntu 22.04

       

      Description: In some cases QMediaDevices::outputDevices() and QMediaDevices::Devices() methods return device that is already disconnected. I was able to reproduce this in some cases on MacOS but there are more reliable steps for Ubuntu system. In this case it is ehough to quickly unplug and plug back audio device, after that 2 identical devices with the same name will apear in the list of available devices.

      This leads to to another incorrect behavior. If I stream some audio data to output device, and then trigger this bug, the sound will play on built-in speakers.

      Here is my test app, where i was able to reproduce all decribed issues:

      qtmultimediadummy-main.zip

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

            qtmultimediateam Qt Multimedia Team
            androsiuk Makym Androsiuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes