changeset 20998:ffaf63b76b55

reinit_video_chain might set sh_video = NULL, so check against that.
author reimar
date Sat, 18 Nov 2006 12:30:48 +0000
parents 425ff58ad31b
children 1cf17aafeca1
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat Nov 18 12:26:04 2006 +0000
+++ b/mplayer.c	Sat Nov 18 12:30:48 2006 +0000
@@ -4263,7 +4263,7 @@
 
 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);
   }