[Mplayer-cvslog] CVS: main mplayer.c,1.602,1.603

pl pl at mplayerhq.hu
Fri Oct 25 11:43:04 CEST 2002


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

Modified Files:
	mplayer.c 
Log Message:
fixes a segfault when seeking on some mp3 only files


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.602
retrieving revision 1.603
diff -u -r1.602 -r1.603
--- mplayer.c	23 Oct 2002 22:07:11 -0000	1.602
+++ mplayer.c	25 Oct 2002 09:42:55 -0000	1.603
@@ -2547,7 +2547,7 @@
         // Set OSD:
       if(osd_level){
         int len=((demuxer->movi_end-demuxer->movi_start)>>8);
-        if (len>0){
+        if (len>0 && sh_video){
 	   osd_visible=sh_video->fps; // 1 sec
 	   vo_osd_progbar_type=0;
 	   vo_osd_progbar_value=(demuxer->filepos-demuxer->movi_start)/len;




More information about the MPlayer-cvslog mailing list