From 8fe8dcd2bbc4c00aff851aa807f95244e9cc3a91 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Sun, 19 Oct 2003 13:40:32 +0000 Subject: 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 --- src/audio_out/audio_oss_out.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3