changeset 9049:ce5d2df8db5a

hwac3 fix again
author arpi
date Mon, 20 Jan 2003 22:51:01 +0000
parents c0eab5d768c7
children 44db2e9719db
files mplayer.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Mon Jan 20 22:49:50 2003 +0000
+++ b/mplayer.c	Mon Jan 20 22:51:01 2003 +0000
@@ -1664,6 +1664,9 @@
 	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! -> NOSOUND\n");
+      if(sh_audio->afilter){
+          free(sh_audio->afilter); sh_audio->afilter=NULL;
+      }
 //      uninit_player(INITED_ACODEC|INITED_AO); // close codec & ao
 //      sh_audio=d_audio->sh=NULL; // -> nosound
     }