diff mplayer.c @ 19337:79b3a37b3b98

Don't crash if audio init fails.
author uau
date Sat, 05 Aug 2006 18:23:10 +0000
parents 6f940283e339
children 4e68a3881201
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);
 }