зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1269165 - Restore ALSA plugins detection on non-Linux after bug 757637. r=jesup
--HG-- extra : rebase_source : b655bc3c2928c18ab8ed3fb170926ea8213a122b
This commit is contained in:
Родитель
6d9051edd6
Коммит
7a9638bef9
|
@ -1752,7 +1752,9 @@ int32_t AudioDeviceLinuxALSA::GetDevicesInfo(
|
|||
// Don't use snd_device_name_hint(-1,..) since there is a access violation
|
||||
// inside this ALSA API with libasound.so.2.0.0.
|
||||
int card = -1;
|
||||
#ifdef WEBRTC_LINUX
|
||||
while (!(LATE(snd_card_next)(&card)) && (card >= 0) && keepSearching) {
|
||||
#endif
|
||||
void **hints;
|
||||
err = LATE(snd_device_name_hint)(card, "pcm", &hints);
|
||||
if (err != 0)
|
||||
|
@ -1878,7 +1880,9 @@ int32_t AudioDeviceLinuxALSA::GetDevicesInfo(
|
|||
LATE(snd_strerror)(err));
|
||||
// Continue and return true anyway, since we did get the whole list.
|
||||
}
|
||||
#ifdef WEBRTC_LINUX
|
||||
}
|
||||
#endif
|
||||
|
||||
if (FUNC_GET_NUM_OF_DEVICE == function)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче