# HG changeset patch # User pontscho # Date 1000333176 0 # Node ID dbfa0c00568bd527ed6a2fa232fea7c22fa104b6 # Parent 1f1e98fbf3a70f424ca47cbb1d2707227dd317d8 fix, bug diff -r 1f1e98fbf3a7 -r dbfa0c00568b mplayer.c --- 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) ==========================