Bug 1269165 - Restore ALSA plugins detection on non-Linux after bug 757637. r=jesup

--HG--
extra : rebase_source : b655bc3c2928c18ab8ed3fb170926ea8213a122b
This commit is contained in:
Jan Beich 2016-04-30 21:52:00 -04:00
Родитель 6d9051edd6
Коммит 7a9638bef9
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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)
{