1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 12:55:16 +00:00

Properly free memory allocate by liba52.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26955 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-06-01 16:40:56 +00:00
parent 167c4a1990
commit 6ab8ece718
2 changed files with 4 additions and 0 deletions

View File

@ -128,14 +128,17 @@ static int init(sh_audio_t *sh_audio)
}
if(ac3dts_fillbuff(sh_audio) < 0)
{
a52_free(a52_state);
mp_msg(MSGT_DECAUDIO, MSGL_ERR, "AC3/DTS sync failed\n");
return 0;
}
sh_audio->context = a52_state;
return 1;
}
static void uninit(sh_audio_t *sh)
{
a52_free(sh->context);
}
static int control(sh_audio_t *sh,int cmd,void* arg, ...)

View File

@ -253,6 +253,7 @@ while(sh_audio->channels>0){
static void uninit(sh_audio_t *sh)
{
a52_free(a52_state);
}
static int control(sh_audio_t *sh,int cmd,void* arg, ...)