[vlc-devel] commit: Use tha same date for updating subtitles regions. (Laurent Aimar )

git version control git at videolan.org
Mon Sep 15 20:29:22 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Sep 14 23:50:47 2008 +0200| [9200678d8cb6d5183c6b7bc36b8906e962515e9a] | committer: Laurent Aimar 

Use tha same date for updating subtitles regions.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9200678d8cb6d5183c6b7bc36b8906e962515e9a
---

 src/video_output/vout_subpictures.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index e690fda..f0c32e5 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -954,6 +954,7 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
                             subpicture_t *p_subpic_list,
                             int i_scale_width_orig, int i_scale_height_orig )
 {
+    const mtime_t i_current_date = mdate();
     int i_source_video_width;
     int i_source_video_height;
     subpicture_t *p_subpic;
@@ -1001,7 +1002,7 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
             fmt_org.i_height =
             fmt_org.i_visible_height = i_source_video_height;
 
-            p_subpic->pf_update_regions( &fmt_org, p_spu, p_subpic, mdate() );
+            p_subpic->pf_update_regions( &fmt_org, p_spu, p_subpic, i_current_date );
         }
     }
 




More information about the vlc-devel mailing list