[vlc-commits] commit: remove the time check which avoided rendering the overlay at a time it had been rendered already ; fixes subtitles disappearing when pausing. (Vincent Penquerc'h )

git at videolan.org git at videolan.org
Fri Mar 26 11:32:16 CET 2010


vlc | branch: master | Vincent Penquerc'h <ogg.k.ogg.k at googlemail.com> | Thu Mar 25 14:39:52 2010 +0000| [9f72dd7fb32138e18aa46bf6cf9946b431aef270] | committer: Jean-Baptiste Kempf 

remove the time check which avoided rendering the overlay at a time it had been rendered already; fixes subtitles disappearing when pausing.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/codec/kate.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/modules/codec/kate.c b/modules/codec/kate.c
index 4cd7e89..7def25f 100644
--- a/modules/codec/kate.c
+++ b/modules/codec/kate.c
@@ -99,7 +99,6 @@ struct decoder_sys_t
      * Tiger properties
      */
     tiger_renderer    *p_tr;
-    mtime_t            last_render_ts;
     bool               b_dirty;
 
     uint32_t           i_tiger_default_font_color;
@@ -389,7 +388,6 @@ static int OpenDecoder( vlc_object_t *p_this )
     p_sys->b_use_tiger = var_CreateGetBool( p_dec, "kate-use-tiger" );
 
     p_sys->p_tr = NULL;
-    p_sys->last_render_ts = 0;
 
     /* get initial value of configuration */
     p_sys->i_tiger_default_font_color = GetTigerColor( p_dec, "kate-tiger-default-font" );
@@ -846,16 +844,6 @@ static void TigerUpdateRegions( spu_t *p_spu, subpicture_t *p_subpic, const vide
 
     PROFILE_START( TigerUpdateRegions );
 
-    /* do not render more than once per frame, libtiger renders all events at once */
-    if (ts <= p_sys->last_render_ts)
-    {
-        SubpictureReleaseRegions( p_subpic );
-        return;
-    }
-
-    /* remember what frame we've rendered already */
-    p_sys->last_render_ts = ts;
-
     /* time in seconds from the start of the stream */
     t = (p_subpic->p_sys->i_start + ts - p_subpic->i_start ) / 1000000.0f;
 



More information about the vlc-commits mailing list