[Mplayer-cvslog] CVS: main mplayer.c,1.456,1.457

Kim Minh Kaplan CVS kmkaplan at mplayer.dev.hu
Tue Apr 2 04:33:03 CEST 2002


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

Modified Files:
	mplayer.c 
Log Message:
Add '-subdelay' support for vobsub.



Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.456
retrieving revision 1.457
diff -u -r1.456 -r1.457
--- mplayer.c	1 Apr 2002 18:29:31 -0000	1.456
+++ mplayer.c	2 Apr 2002 02:32:54 -0000	1.457
@@ -2675,7 +2675,8 @@
   // VobSub subtitles
   if(vo_vobsub){
     current_module="vobsub";
-    vobsub_process(vo_vobsub,d_video->pts);
+    if(d_video->pts+sub_delay>=0)
+      vobsub_process(vo_vobsub,d_video->pts+sub_delay);
     
     /* Don't know how to detect wether the sub has changed or not */
     vo_osd_changed(1);




More information about the MPlayer-cvslog mailing list