Commit 9f72dd7f authored by Vincent Penquerc'h's avatar Vincent Penquerc'h Committed by Jean-Baptiste Kempf

remove the time check which avoided rendering the overlay at a time it had...

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: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f7c9f832
...@@ -99,7 +99,6 @@ struct decoder_sys_t ...@@ -99,7 +99,6 @@ struct decoder_sys_t
* Tiger properties * Tiger properties
*/ */
tiger_renderer *p_tr; tiger_renderer *p_tr;
mtime_t last_render_ts;
bool b_dirty; bool b_dirty;
uint32_t i_tiger_default_font_color; uint32_t i_tiger_default_font_color;
...@@ -389,7 +388,6 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -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->b_use_tiger = var_CreateGetBool( p_dec, "kate-use-tiger" );
p_sys->p_tr = NULL; p_sys->p_tr = NULL;
p_sys->last_render_ts = 0;
/* get initial value of configuration */ /* get initial value of configuration */
p_sys->i_tiger_default_font_color = GetTigerColor( p_dec, "kate-tiger-default-font" ); 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 ...@@ -846,16 +844,6 @@ static void TigerUpdateRegions( spu_t *p_spu, subpicture_t *p_subpic, const vide
PROFILE_START( TigerUpdateRegions ); 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 */ /* time in seconds from the start of the stream */
t = (p_subpic->p_sys->i_start + ts - p_subpic->i_start ) / 1000000.0f; t = (p_subpic->p_sys->i_start + ts - p_subpic->i_start ) / 1000000.0f;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment