summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libmad/xine_decoder.c6
-rw-r--r--src/libspudec/xine_decoder.c3
2 files changed, 7 insertions, 2 deletions
diff --git a/src/libmad/xine_decoder.c b/src/libmad/xine_decoder.c
index bb974639b..07bd9d192 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.36 2002/12/21 12:56:48 miguelfreitas Exp $
+ * $Id: xine_decoder.c,v 1.37 2002/12/21 16:35:46 esnel Exp $
*
* stuff needed to turn libmad into a xine decoder plugin
*/
@@ -66,6 +66,10 @@ static void mad_reset (audio_decoder_t *this_gen) {
mad_decoder_t *this = (mad_decoder_t *) this_gen;
+ mad_synth_finish (&this->synth);
+ mad_frame_finish (&this->frame);
+ mad_stream_finish(&this->stream);
+
this->pts = 0;
this->bytes_in_buffer = 0;
diff --git a/src/libspudec/xine_decoder.c b/src/libspudec/xine_decoder.c
index ccaad726a..e948a9a82 100644
--- a/src/libspudec/xine_decoder.c
+++ b/src/libspudec/xine_decoder.c
@@ -19,7 +19,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.90 2002/12/21 12:56:48 miguelfreitas Exp $
+ * $Id: xine_decoder.c,v 1.91 2002/12/21 16:35:46 esnel Exp $
*
* stuff needed to turn libspu into a xine decoder plugin
*/
@@ -185,6 +185,7 @@ static void spudec_dispose (spu_decoder_t *this_gen) {
ovl_instance->free_handle(ovl_instance,
this->spudec_stream_state[i].overlay_handle);
this->spudec_stream_state[i].overlay_handle = -1;
+ free (this->spudec_stream_state[i].ra_seq.buf);
}
pthread_mutex_destroy(&this->nav_pci_lock);