changeset 12753:0ea1d052b10b

fix crash when no audio-out is available (e.g. mplayer -ao bad test.avi).
author reimar
date Fri, 02 Jul 2004 22:20:10 +0000
parents b07283b38e52
children 5a2eb96bb809
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Fri Jul 02 20:51:15 2004 +0000
+++ b/mplayer.c	Fri Jul 02 22:20:10 2004 +0000
@@ -1907,7 +1907,7 @@
 #endif
   }
   mixer.audio_out = audio_out;
-  mixer.afilter = sh_audio->afilter;
+  mixer.afilter = sh_audio ? sh_audio->afilter : NULL;
   mixer.volstep = 3;
 }