diff options
author | Juergen Keil <jkeil@users.sourceforge.net> | 2001-09-06 13:36:18 +0000 |
---|---|---|
committer | Juergen Keil <jkeil@users.sourceforge.net> | 2001-09-06 13:36:18 +0000 |
commit | 1248f263c9bc4aa7d69e59f8be4c9baed74dc2f0 (patch) | |
tree | 91daf284cb6e3a51f8227fe83caa725ebe634c84 /src/libmad/xine_decoder.c | |
parent | a374a1ec32a615a35b827966d2fe0758a66b21c4 (diff) | |
download | xine-lib-1248f263c9bc4aa7d69e59f8be4c9baed74dc2f0.tar.gz xine-lib-1248f263c9bc4aa7d69e59f8be4c9baed74dc2f0.tar.bz2 |
Fix error checking for failed ao_instance->open
CVS patchset: 577
CVS date: 2001/09/06 13:36:18
Diffstat (limited to 'src/libmad/xine_decoder.c')
-rw-r--r-- | src/libmad/xine_decoder.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libmad/xine_decoder.c b/src/libmad/xine_decoder.c index 6ca98cc85..94ce433e5 100644 --- a/src/libmad/xine_decoder.c +++ b/src/libmad/xine_decoder.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: xine_decoder.c,v 1.4 2001/09/01 21:56:38 guenter Exp $ + * $Id: xine_decoder.c,v 1.5 2001/09/06 13:36:18 jkeil Exp $ * * stuff needed to turn libmad into a xine decoder plugin */ @@ -172,11 +172,10 @@ static void mad_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { if (this->output_open) this->audio_out->close (this->audio_out); - this->audio_out->open(this->audio_out, - 16, this->frame.header.samplerate, - mode); + this->output_open = (this->audio_out->open(this->audio_out, 16, + this->frame.header.samplerate, + mode) == 1); - this->output_open = 1; this->output_sampling_rate = this->frame.header.samplerate; this->output_mode = mode; } |