From 4b9ac7c9f4b94b141fe2e659259e2db0bebf9c8f Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Sun, 20 Jul 2003 19:28:14 +0000 Subject: OSS never return 1, but write() length. CVS patchset: 5201 CVS date: 2003/07/20 19:28:14 --- src/xine-engine/audio_out.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 0b8dfb229..9f8909d2f 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -17,7 +17,7 @@ * along with self program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_out.c,v 1.135 2003/07/20 12:29:18 jcdutton Exp $ + * $Id: audio_out.c,v 1.136 2003/07/20 19:28:14 f1rmb Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe @@ -1064,7 +1064,7 @@ static void *ao_loop (void *this_gen) { * the PCM as well as the MIXER. * Maybe we should pause the stream until the USB device is plugged in again. */ - XINE_ASSERT(result == 1, "write to sound card failed. Was a USB device unplugged?"); + XINE_ASSERT(result > 0, "write to sound card failed. Was a USB device unplugged?"); lprintf ("loop: next buf from fifo\n"); fifo_append (this->free_fifo, in_buf); -- cgit v1.2.3