Commit b1763920 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vout: switch spu-elapsed variable to integer time

parent d39ba9a0
......@@ -248,7 +248,7 @@ static paragraph_t *NewParagraph( filter_t *p_filter,
i_size * sizeof( *pp_styles ) );
if( pi_k_dates )
{
int64_t i_elapsed = var_GetTime( p_filter, "spu-elapsed" ) / 1000;
int64_t i_elapsed = var_GetInteger( p_filter, "spu-elapsed" ) / 1000;
for( int i = 0; i < i_size; ++i )
{
p_paragraph->pi_karaoke_bar[ i ] = pi_k_dates[ i ] >= i_elapsed;
......
......@@ -205,7 +205,7 @@ static filter_t *SpuRenderCreateAndLoadText(spu_t *spu)
text->p_module = module_need(text, "text renderer", "$text-renderer", false);
/* Create a few variables used for enhanced text rendering */
var_Create(text, "spu-elapsed", VLC_VAR_TIME);
var_Create(text, "spu-elapsed", VLC_VAR_INTEGER);
var_Create(text, "text-rerender", VLC_VAR_BOOL);
return text;
......@@ -272,7 +272,7 @@ static void SpuRenderText(spu_t *spu, bool *rerender_text,
* least show up on screen, but the effect won't change
* the text over time.
*/
var_SetTime(text, "spu-elapsed", elapsed_time);
var_SetInteger(text, "spu-elapsed", elapsed_time);
var_SetBool(text, "text-rerender", false);
if (text->pf_render_html && region->psz_html)
......
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