From 60d924aff557a7748acd7ad960c3bb3c79ea15a5 Mon Sep 17 00:00:00 2001 From: James Courtier-Dutton Date: Sun, 20 Jul 2003 12:29:18 +0000 Subject: More USB soundcard updates. CVS patchset: 5199 CVS date: 2003/07/20 12:29:18 --- src/audio_out/audio_alsa_out.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/audio_out/audio_alsa_out.c') diff --git a/src/audio_out/audio_alsa_out.c b/src/audio_out/audio_alsa_out.c index 77928de27..77c100761 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.99 2003/07/20 10:34:29 jcdutton Exp $ + * $Id: audio_alsa_out.c,v 1.100 2003/07/20 12:29:18 jcdutton Exp $ */ #ifdef HAVE_CONFIG_H @@ -645,6 +645,7 @@ static int ao_alsa_write(ao_driver_t *this_gen, int16_t *data, uint32_t count) { snd_pcm_status_dump(pcm_stat, jcd_out); #endif if ((res = snd_pcm_prepare(this->audio_fd))<0) { + return 0; XINE_ASSERT (0,"audio_alsa_out: xrun: prepare error: %s", snd_strerror(res)); } state = snd_pcm_state(this->audio_fd); -- cgit v1.2.3