aboutsummaryrefslogtreecommitdiff
path: root/mail/thunderbird/files/patch-bug1269165
blob: 829af431046bd0f74838d59e737de85a62fff182 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# getUserMedia fails to enumerate ALSA plugins

--- mozilla/media/webrtc/trunk/webrtc/modules/audio_device/linux/audio_device_alsa_linux.cc.orig	2016-04-22 00:37:17 UTC
+++ mozilla/media/webrtc/trunk/webrtc/modules/audio_device/linux/audio_device_alsa_linux.cc
@@ -1752,7 +1752,9 @@ int32_t AudioDeviceLinuxALSA::GetDevices
     // 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::GetDevices
                          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)
     {