changeset 5463:c0b6da33d48f

Add '-subdelay' support for vobsub.
author kmkaplan
date Tue, 02 Apr 2002 02:32:54 +0000
parents 6f785b890dab
children af4840edceaf
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Mon Apr 01 19:14:14 2002 +0000
+++ b/mplayer.c	Tue Apr 02 02:32:54 2002 +0000
@@ -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);