Details
-
Technical task
-
Resolution: Fixed
-
P2: Important
-
None
-
-
Multimedia wk 49-50, Multimedia wk 51-2, Multimedia wk 5-6, Multimedia wk 7-8, Multimedia, weeks 9-10, Multimedia, weeks 11-12, Multimedia, weeks 13-14, Multimedia, weeks 15-16
-
494fa08d5 (6.9), 3acfa444f (6.8), f2cebb082 (6.8), 784d2adad (6.8), 95d5ff248 (6.8), e7a2cd02b (tqtc/lts-6.5), f972f95ac (tqtc/lts-6.5), 207f3283d (dev), c3bb1e3ad (dev), 53ffa8fb6 (6.9), 372e99805 (6.9), fc06dfe52 (tqtc/lts-6.8), abd785b58 (tqtc/lts-6.8)
Description
Currently, QAudioDevice and QCameraDevice will rely on several members to compare them.
Many of the members in these structs are cached, and are not updated to reflect reality when devices are disconnected and reconnected. This means that if you compare a QAudioDevice with a newer instance from QMediaDevices::audioInputs(), the comparison will fail even though they represent the same physical device.
This issue should not be closed until the behavior is corrected and documented.
As discussed in QTBUG-131674, these should only compare IDs of the devices to see if they are referring to the same physical device.