[vlc-devel] [PATCH] ALSA : Fix error check for the busy waiting case.

Jai Menon jmenon86 at gmail.com
Wed Aug 11 19:55:32 CEST 2010


---
 modules/audio_output/alsa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/audio_output/alsa.c b/modules/audio_output/alsa.c
index 2216e81..4489513 100644
--- a/modules/audio_output/alsa.c
+++ b/modules/audio_output/alsa.c
@@ -463,7 +463,7 @@ static int Open( vlc_object_t *p_this )
           the time it returns, probe if the device is available in loop for 1s.
           We cannot use blocking mode since the we would wait indefinitely when
           switching from a dmx device to surround51. */
-        if( i == 0 )
+        if( i == 1 )
         {
             msg_Err( p_aout, "audio device %s is already in use",
                      psz_device );
-- 
1.7.1.1




More information about the vlc-devel mailing list