diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2001-12-25 11:41:04 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2001-12-25 11:41:04 +0000 |
commit | 8cb0d960b55345f4daa236130c99b60b3cb6fbc8 (patch) | |
tree | 63f768d5b6fc6a3982bfb834e1cbb6f689020613 /src | |
parent | c41afd353fae83cac35d49385bd9e7b7786dd704 (diff) | |
download | xine-lib-8cb0d960b55345f4daa236130c99b60b3cb6fbc8.tar.gz xine-lib-8cb0d960b55345f4daa236130c99b60b3cb6fbc8.tar.bz2 |
another bug reported by Christer Palm
CVS patchset: 1304
CVS date: 2001/12/25 11:41:04
Diffstat (limited to 'src')
-rw-r--r-- | src/libmad/xine_decoder.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libmad/xine_decoder.c b/src/libmad/xine_decoder.c index 6c64a6a44..1999c982b 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.10 2001/12/11 15:30:06 miguelfreitas Exp $ + * $Id: xine_decoder.c,v 1.11 2001/12/25 11:41:04 miguelfreitas Exp $ * * stuff needed to turn libmad into a xine decoder plugin */ @@ -183,6 +183,7 @@ 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->output_open = 0; } if (!this->output_open) { this->output_open = this->audio_out->open(this->audio_out, 16, @@ -247,8 +248,10 @@ static void mad_close (audio_decoder_t *this_gen) { mad_frame_finish (&this->frame); mad_stream_finish(&this->stream); - if (this->output_open) + if (this->output_open) { this->audio_out->close (this->audio_out); + this->output_open = 0; + } } static char *mad_get_id(void) { |