[vlc-commits] commit: ALSA : Fix error check for the busy waiting case. (Jai Menon )

git at videolan.org git at videolan.org
Thu Aug 12 11:39:30 CEST 2010


vlc | branch: master | Jai Menon <jmenon86 at gmail.com> | Wed Aug 11 23:43:32 2010 +0530| [671c8ee278fc04bb8d51ce84fb211f7bd261100b] | committer: Jean-Baptiste Kempf 

ALSA : Fix error check for the busy waiting case.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=671c8ee278fc04bb8d51ce84fb211f7bd261100b
---

 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 );



More information about the vlc-commits mailing list