[Mplayer-cvslog] CVS: main/libmpcodecs dec_audio.c,1.9,1.10
Arpi of Ize
arpi at mplayerhq.hu
Mon Sep 2 01:33:33 CEST 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv21131
Modified Files:
dec_audio.c
Log Message:
fixed uninit order
Index: dec_audio.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/dec_audio.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- dec_audio.c 31 Aug 2002 13:09:23 -0000 1.9
+++ dec_audio.c 1 Sep 2002 23:33:30 -0000 1.10
@@ -131,14 +131,15 @@
void uninit_audio(sh_audio_t *sh_audio)
{
+ if(sh_audio->inited){
+ mp_msg(MSGT_DECAUDIO,MSGL_V,MSGTR_UninitAudioStr,sh_audio->codec->drv);
+ mpadec->uninit(sh_audio);
+ sh_audio->inited=0;
+ }
if(sh_audio->a_buffer) free(sh_audio->a_buffer);
sh_audio->a_buffer=NULL;
if(sh_audio->a_in_buffer) free(sh_audio->a_in_buffer);
sh_audio->a_in_buffer=NULL;
- if(!sh_audio->inited) return;
- mp_msg(MSGT_DECAUDIO,MSGL_V,MSGTR_UninitAudioStr,sh_audio->codec->drv);
- mpadec->uninit(sh_audio);
- sh_audio->inited=0;
}
int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int maxlen)
More information about the MPlayer-cvslog
mailing list