From: Jai Menon Date: Wed, 11 Aug 2010 17:55:32 +0000 (+0530) Subject: ALSA : Fix error check for the busy waiting case. X-Git-Tag: 1.2.0-pre1~5448 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=671c8ee278fc04bb8d51ce84fb211f7bd261100b;p=vlc ALSA : Fix error check for the busy waiting case. Signed-off-by: Jean-Baptiste Kempf --- diff --git a/modules/audio_output/alsa.c b/modules/audio_output/alsa.c index 2216e819e5..448951333d 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 );