Alsa: fix crash when detecting devices.
authorYoann Lopes <yoann.lopes@digia.com>
Thu, 30 Jan 2014 15:32:53 +0000 (16:32 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 30 Jan 2014 17:12:44 +0000 (18:12 +0100)
commit0ab81ef59f35d103ec8174834c4fc2a4dcced453
tree20d4346b56a14b97d2c78409ccb7d1873564658b
parent67b86a9fbd87fb50e896bf66313c2f949501df5b
Alsa: fix crash when detecting devices.

Some old versions of Alsa crash when snd_device_name_hint(-1, ...) is
called. This patch works around the problem by iterating manually over all
the available sound cards.

Change-Id: Ic380a371acc15013d137553ff30d68bed5af664e
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/gsttools/qgstreameraudioinputselector.cpp
src/multimedia/audio/qaudiodeviceinfo_alsa_p.cpp