summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiggi Langauf <siggi@users.sourceforge.net>2003-04-17 17:04:12 +0000
committerSiggi Langauf <siggi@users.sourceforge.net>2003-04-17 17:04:12 +0000
commit05e985d004bc397174a62d6f060b9742e9914087 (patch)
tree5d69e9bb63b6424993f54a1d4d3abfb0fa71d256
parent6a5c82e1d672f66ca351d7e2589e1b6d31e87450 (diff)
downloadxine-lib-05e985d004bc397174a62d6f060b9742e9914087.tar.gz
xine-lib-05e985d004bc397174a62d6f060b9742e9914087.tar.bz2
using non-blocking open mode, in order to avoid infinite waiting when the
ALSA device is busy (eg. in ise by ESD) CVS patchset: 4631 CVS date: 2003/04/17 17:04:12
-rw-r--r--src/audio_out/audio_alsa_out.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio_out/audio_alsa_out.c b/src/audio_out/audio_alsa_out.c
index 5190dd257..18e97e51e 100644
--- a/src/audio_out/audio_alsa_out.c
+++ b/src/audio_out/audio_alsa_out.c
@@ -26,7 +26,7 @@
* (c) 2001 James Courtier-Dutton <James@superbug.demon.co.uk>
*
*
- * $Id: audio_alsa_out.c,v 1.90 2003/03/17 15:17:08 mroi Exp $
+ * $Id: audio_alsa_out.c,v 1.91 2003/04/17 17:04:12 siggi Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -178,8 +178,8 @@ static int ao_alsa_open(ao_driver_t *this_gen, uint32_t bits, uint32_t rate, int
snd_pcm_sframes_t buffer_size;
snd_pcm_sframes_t period_size;
int err, dir;
- // int open_mode=1; //NONBLOCK
- int open_mode=0; //BLOCK
+ int open_mode=1; /* NONBLOCK */
+ /* int open_mode=0; BLOCK */
snd_pcm_hw_params_alloca(&params);
snd_pcm_sw_params_alloca(&swparams);