[Mplayer-cvslog] CVS: main mencoder.c,1.221,1.222
Alex Beregszaszi
alex at mplayerhq.hu
Sun Nov 23 20:31:34 CET 2003
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv31276
Modified Files:
mencoder.c
Log Message:
workaround! exit if there's no video stream (hopefully it's a proper fix)
Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.221
retrieving revision 1.222
diff -u -r1.221 -r1.222
--- mencoder.c 7 Nov 2003 23:32:38 -0000 1.221
+++ mencoder.c 23 Nov 2003 19:30:05 -0000 1.222
@@ -510,6 +510,12 @@
sh_audio=d_audio->sh;
sh_video=d_video->sh;
+ if(!sh_video)
+ {
+ mp_msg(MSGT_CPLAYER,MSGL_FATAL,"Video stream is mandatory!\n");
+ mencoder_exit(1,NULL);
+ }
+
if(!video_read_properties(sh_video)){
printf(MSGTR_CannotReadVideoProperties);
mencoder_exit(1,NULL);
More information about the MPlayer-cvslog
mailing list