reinit_video_chain might set sh_video = NULL, so check against that.
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 18 Nov 2006 12:30:48 +0000 (12:30 +0000)
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 18 Nov 2006 12:30:48 +0000 (12:30 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@21014 b3059339-0415-0410-9bf9-f77b7e298cf2

mplayer.c

index a998467..3bbfa6d 100644 (file)
--- a/mplayer.c
+++ b/mplayer.c
@@ -4263,7 +4263,7 @@ if(!sh_video) goto main; // audio-only
 
 if(!reinit_video_chain()) {
   if(!video_out) goto goto_next_file;
-  if(!sh_video->inited){
+  if(!sh_video || !sh_video->inited){
     if(!sh_audio) goto goto_next_file;
     goto main; // exit_player(MSGTR_Exit_error);
   }