summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2001-09-06 13:33:20 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2001-09-06 13:33:20 +0000
commita374a1ec32a615a35b827966d2fe0758a66b21c4 (patch)
tree79afdad3cc4517bfe7ca33590013b561bc37750a
parentde083845d3b359644125ab6201957d0ca04f6b42 (diff)
downloadxine-lib-a374a1ec32a615a35b827966d2fe0758a66b21c4.tar.gz
xine-lib-a374a1ec32a615a35b827966d2fe0758a66b21c4.tar.bz2
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
-rw-r--r--src/xine-engine/audio_out.c4
1 files changed, 2 insertions, 2 deletions
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 <andy@alsaplayer.org>
@@ -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);