[Mplayer-cvslog] CVS: main mplayer.c,1.435,1.436

Alban Bedel CVS albeu at mplayer.dev.hu
Sat Mar 16 18:10:17 CET 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv29614

Modified Files:
	mplayer.c 
Log Message:
Fixed the bug that make mplayer crash with no sound and an invalid
video codec


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.435
retrieving revision 1.436
diff -u -r1.435 -r1.436
--- mplayer.c	16 Mar 2002 16:36:31 -0000	1.435
+++ mplayer.c	16 Mar 2002 17:10:15 -0000	1.436
@@ -1247,7 +1247,9 @@
 		if(bestprio==-1 || !video_codec) {
     mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantFindVideoCodec,sh_video->format);
     mp_msg(MSGT_CPLAYER,MSGL_HINT, MSGTR_TryUpgradeCodecsConfOrRTFM,get_path("codecs.conf"));
-    sh_video = d_video->sh = NULL; 
+    if(!sh_audio)
+      goto goto_next_file;
+    sh_video = d_video->sh = NULL;
     goto main; // exit_player(MSGTR_Exit_error);
     }
   } else {




More information about the MPlayer-cvslog mailing list