summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-12 22:19:36 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-12 22:19:36 +0000
commit670e705235b515a637d3d725a59775362d2249c3 (patch)
tree46f94be987e75af82cb9a96e634056fbe5d01047 /mplayer.c
parent46bf7cce063a4ef1469e9381d5be27535b8e0e67 (diff)
downloadmpv-670e705235b515a637d3d725a59775362d2249c3.tar.bz2
mpv-670e705235b515a637d3d725a59775362d2249c3.tar.xz
fix, bug
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1890 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index ae74a50597..aed7728a50 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -866,13 +866,16 @@ if(sh_audio){
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;
+ if ( use_gui ) mplShMem->AudioType=sh_audio->channels;
#endif
+ }
}
//================== Init VIDEO (codec & libvo) ==========================