From 6133e7cf8703eb7cbb587be158a715079bcbbf06 Mon Sep 17 00:00:00 2001 From: ods15 Date: Fri, 24 Feb 2006 15:43:20 +0000 Subject: [PATCH] Add uninit for audio before switching to next file and completing encode git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17676 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mencoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mencoder.c b/mencoder.c index 589c0422de..cd76cb901f 100644 --- a/mencoder.c +++ b/mencoder.c @@ -1524,6 +1524,7 @@ if (!interrupted && filelist[++curfile].name != 0) { sh_video->vfilter = NULL; } + if(sh_audio){ uninit_audio(sh_audio);sh_audio=NULL; } if(sh_video){ uninit_video(sh_video);sh_video=NULL; } if(demuxer) free_demuxer(demuxer); if(stream) free_stream(stream); // kill cache thread @@ -1572,6 +1573,7 @@ if(sh_audio) mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_AudioStreamResult, (float)(mux_a->size/mux_a->timer*8.0f/1000.0f), (int)(mux_a->size/mux_a->timer), (int)mux_a->size, (float)mux_a->timer); +if(sh_audio){ uninit_audio(sh_audio);sh_audio=NULL; } if(sh_video){ uninit_video(sh_video);sh_video=NULL; } if(demuxer) free_demuxer(demuxer); if(stream) free_stream(stream); // kill cache thread