diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-10-19 13:40:32 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-10-19 13:40:32 +0000 |
commit | 8fe8dcd2bbc4c00aff851aa807f95244e9cc3a91 (patch) | |
tree | ee0bb59724fd71318c074bf77cea5661e23d0c3d /src | |
parent | d6f1a66d60f33cece488cf9ca30307564b14f508 (diff) | |
download | xine-lib-8fe8dcd2bbc4c00aff851aa807f95244e9cc3a91.tar.gz xine-lib-8fe8dcd2bbc4c00aff851aa807f95244e9cc3a91.tar.bz2 |
Try to follow audio_out api.
Thanks to Daniel for the patch.
Bastien: please test
CVS patchset: 5542
CVS date: 2003/10/19 13:40:32
Diffstat (limited to 'src')
-rw-r--r-- | src/audio_out/audio_oss_out.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_out/audio_oss_out.c b/src/audio_out/audio_oss_out.c index f14064fd3..373432b7d 100644 --- a/src/audio_out/audio_oss_out.c +++ b/src/audio_out/audio_oss_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_oss_out.c,v 1.91 2003/10/06 15:27:10 mroi Exp $ + * $Id: audio_oss_out.c,v 1.92 2003/10/19 13:40:32 tmattern Exp $ * * 20-8-2001 First implementation of Audio sync and Audio driver separation. * Copyright (C) 2001 James Courtier-Dutton James@superbug.demon.co.uk @@ -486,7 +486,7 @@ static int ao_oss_write(ao_driver_t *this_gen, printf ("audio_oss_out: ao_oss_write done\n"); #endif - return n; + return (n >= 0 ? n : 0); } static void ao_oss_close(ao_driver_t *this_gen) { |