fix crash when no audio-out is available (e.g. mplayer -ao bad test.avi).
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 2 Jul 2004 22:20:10 +0000 (22:20 +0000)
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 2 Jul 2004 22:20:10 +0000 (22:20 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@12754 b3059339-0415-0410-9bf9-f77b7e298cf2

mplayer.c

index 8614f2a..badc6c1 100644 (file)
--- a/mplayer.c
+++ b/mplayer.c
@@ -1907,7 +1907,7 @@ if(sh_audio){
 #endif
   }
   mixer.audio_out = audio_out;
-  mixer.afilter = sh_audio->afilter;
+  mixer.afilter = sh_audio ? sh_audio->afilter : NULL;
   mixer.volstep = 3;
 }