Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
6.2.8
Description
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: