From 70768558c8a2c34f2cce7a3721c40af89eade2f6 Mon Sep 17 00:00:00 2001 From: James Courtier-Dutton Date: Sat, 4 Oct 2003 22:27:58 +0000 Subject: Fix blocking on xine start when using alsa. Fixes bug: - http://bugs.debian.org/211304 CVS patchset: 5442 CVS date: 2003/10/04 22:27:58 --- src/audio_out/audio_alsa_out.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/audio_out/audio_alsa_out.c b/src/audio_out/audio_alsa_out.c index 77d212410..76339f341 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 * * - * $Id: audio_alsa_out.c,v 1.110 2003/09/27 14:59:43 jcdutton Exp $ + * $Id: audio_alsa_out.c,v 1.111 2003/10/04 22:27:58 jcdutton Exp $ */ #ifdef HAVE_CONFIG_H @@ -1261,12 +1261,12 @@ static ao_driver_t *open_plugin (audio_driver_class_t *class_gen, const void *da /* * open that device */ - err=snd_pcm_open(&this->audio_fd, pcm_device, SND_PCM_STREAM_PLAYBACK, 0); + err=snd_pcm_open(&this->audio_fd, pcm_device, SND_PCM_STREAM_PLAYBACK, 1); /* NON-BLOCK mode */ if(err <0 ) { xine_log (this->class->xine, XINE_LOG_MSG, - "snd_pcm_open() failed: %d", err); + "snd_pcm_open() failed:%d:%s\n", err, snd_strerror(err)); xine_log (this->class->xine, XINE_LOG_MSG, - ">>> Check if another program don't already use PCM <<<"); + ">>> Check if another program don't already use PCM <<<\n"); return NULL; } -- cgit v1.2.3