From a374a1ec32a615a35b827966d2fe0758a66b21c4 Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Thu, 6 Sep 2001 13:33:20 +0000 Subject: Use return value "0" as an error indication for ao_instance->open; "1" (or some value > 0) for success. (for consistancy with ao_driver->open) CVS patchset: 576 CVS date: 2001/09/06 13:33:20 --- src/xine-engine/audio_out.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 4689e2427..69f6136d7 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.10 2001/09/02 00:30:22 guenter Exp $ + * $Id: audio_out.c,v 1.11 2001/09/06 13:33:20 jkeil Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe @@ -128,7 +128,7 @@ static int ao_open(ao_instance_t *this, int output_sample_rate; if ((output_sample_rate=this->driver->open(this->driver,bits,rate,mode)) == 0) { printf("audio_out: open failed!\n"); - return -1; + return 0; }; printf("audio_out: output sample rate %d\n", output_sample_rate); -- cgit v1.2.3