changeset 1889:dbfa0c00568b

fix, bug
author pontscho
date Wed, 12 Sep 2001 22:19:36 +0000
parents 1f1e98fbf3a7
children d7b967b55902
files mplayer.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Wed Sep 12 22:12:05 2001 +0000
+++ b/mplayer.c	Wed Sep 12 22:19:36 2001 +0000
@@ -866,13 +866,16 @@
   if(!init_audio(sh_audio)){
     mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CouldntInitAudioCodec);
     sh_audio=d_audio->sh=NULL;
+#ifdef HAVE_NEW_GUI
+    if ( use_gui ) mplShMem->AudioType=0;
+#endif
   } else {
     mp_msg(MSGT_CPLAYER,MSGL_INFO,"AUDIO: srate=%d  chans=%d  bps=%d  sfmt=0x%X  ratio: %d->%d\n",sh_audio->samplerate,sh_audio->channels,sh_audio->samplesize,
         sh_audio->sample_format,sh_audio->i_bps,sh_audio->o_bps);
+#ifdef HAVE_NEW_GUI
+    if ( use_gui ) mplShMem->AudioType=sh_audio->channels;
+#endif
   }
-#ifdef HAVE_NEW_GUI
-  if ( use_gui ) mplShMem->AudioType=sh_audio->channels;
-#endif
 }
 
 //================== Init VIDEO (codec & libvo) ==========================