diff mencoder.c @ 17675:e735c3f740ba

Add uninit for audio before switching to next file and completing encode
author ods15
date Fri, 24 Feb 2006 15:43:20 +0000
parents 92ac78a93625
children 9e1b5526b0da
line wrap: on
line diff
--- a/mencoder.c	Fri Feb 24 15:22:59 2006 +0000
+++ b/mencoder.c	Fri Feb 24 15:43:20 2006 +0000
@@ -1524,6 +1524,7 @@
 		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 @@
 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