Commit 671c8ee2 authored by Jai Menon's avatar Jai Menon Committed by Jean-Baptiste Kempf

ALSA : Fix error check for the busy waiting case.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 59daa258
...@@ -463,7 +463,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -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. 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 We cannot use blocking mode since the we would wait indefinitely when
switching from a dmx device to surround51. */ switching from a dmx device to surround51. */
if( i == 0 ) if( i == 1 )
{ {
msg_Err( p_aout, "audio device %s is already in use", msg_Err( p_aout, "audio device %s is already in use",
psz_device ); psz_device );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment