Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.0, 5.7.0
-
None
-
Windows 7, 64-bit
Description
Function QAudioDeviceInfo::availableDevices asserts on Windows when dwFormats field of WAVEINCAPS / WAVEOUTCAPS equals to zero. In my case it happens with voice modem (Unimodem Half-Duplex Audio Device). By the way, the Windows Volume Mixer panel doesn't show this device.
In my opinion, the right way to solve this problem is to replace lines 247, 248 and 253, 254 in qwindowsaudiodeviceinfo.cpp
hasCaps = true;
fmt = woc.dwFormats;
with:
hasCaps = (fmt = woc.dwFormats) != 0;
Attachments
For Gerrit Dashboard: QTBUG-54242 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
211116,4 | Fix crash when no supported formats are returned | 5.9 | qt/qtmultimedia | Status: MERGED | +2 | 0 |