changeset 19337:79b3a37b3b98

Don't crash if audio init fails.
author uau
date Sat, 05 Aug 2006 18:23:10 +0000
parents 714bb551a109
children 7f1bc9383922
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat Aug 05 13:14:34 2006 +0000
+++ b/mplayer.c	Sat Aug 05 18:23:10 2006 +0000
@@ -3731,7 +3731,7 @@
 
 if(sh_audio){
   reinit_audio_chain();
-  if (sh_audio->codec)
+  if (sh_audio && sh_audio->codec)
     mp_msg(MSGT_IDENTIFY,MSGL_INFO, "ID_AUDIO_CODEC=%s\n", sh_audio->codec->name);
 }