diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-07-20 19:28:14 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-07-20 19:28:14 +0000 |
commit | 4b9ac7c9f4b94b141fe2e659259e2db0bebf9c8f (patch) | |
tree | 8da2f3a297006399d4446bef844fa432f9db67f5 | |
parent | 3f8dfa76e43a9d3e91b8b4fda0e0fd10d39962dd (diff) | |
download | xine-lib-4b9ac7c9f4b94b141fe2e659259e2db0bebf9c8f.tar.gz xine-lib-4b9ac7c9f4b94b141fe2e659259e2db0bebf9c8f.tar.bz2 |
OSS never return 1, but write() length.
CVS patchset: 5201
CVS date: 2003/07/20 19:28:14
-rw-r--r-- | src/xine-engine/audio_out.c | 4 |
1 files 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 <andy@alsaplayer.org> @@ -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); |