]> git.sesse.net Git - vlc/commitdiff
ALSA : Fix error check for the busy waiting case.
authorJai Menon <jmenon86@gmail.com>
Wed, 11 Aug 2010 17:55:32 +0000 (23:25 +0530)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 12 Aug 2010 09:36:26 +0000 (11:36 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/audio_output/alsa.c

index 2216e819e532dd0c1d8a0a23abc85ffa13231d3b..448951333da224e9582195aac87fd4575311a0a8 100644 (file)
@@ -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 );