From 671c8ee278fc04bb8d51ce84fb211f7bd261100b Mon Sep 17 00:00:00 2001 From: Jai Menon Date: Wed, 11 Aug 2010 23:25:32 +0530 Subject: [PATCH] ALSA : Fix error check for the busy waiting case. Signed-off-by: Jean-Baptiste Kempf --- modules/audio_output/alsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.2