1
mirror of https://github.com/mpv-player/mpv synced 2025-01-16 22:37:28 +01:00

1000l bug (double free() when libaf init failed)

thanx for their help:
Michael Mauch <michael.mauch@gmx.de>
Marc Packenius <marc@freenet-rz.de>
Bartek Kulicki <bartek@interecho.com>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9133 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2003-01-28 00:59:34 +00:00
parent 7d11e17fb3
commit 12e073b638
2 changed files with 1 additions and 7 deletions

View File

@ -353,6 +353,7 @@ int init_audio_filters(sh_audio_t *sh_audio,
// let's autoprobe it!
if(0 != af_init(afs,1)){
sh_audio->afilter=NULL;
free(afs);
return 0; // failed :(
}

View File

@ -1676,13 +1676,6 @@ if(sh_audio){
audio_out_format_bits(ao_data.format)/8, /* ao_data.bps, */
ao_data.outburst*4, ao_data.buffersize)){
mp_msg(MSGT_CPLAYER,MSGL_ERR,"Couldn't find matching filter / ao format!\n");
#if 0
if(sh_audio->afilter){
free(sh_audio->afilter); sh_audio->afilter=NULL;
}
#else
sh_audio->afilter=NULL;
#endif
// mp_msg(MSGT_CPLAYER,MSGL_ERR,"Couldn't find matching filter / ao format! -> NOSOUND\n");
// uninit_player(INITED_ACODEC|INITED_AO); // close codec & ao
// sh_audio=d_audio->sh=NULL; // -> nosound