Commit 2fd69d38 authored by Steve Lhomme's avatar Steve Lhomme Committed by Rémi Denis-Courmont

input: turn the sub-delay into spu-delay using CLOCK_FREQ

Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent eeb4f5c7
......@@ -984,7 +984,7 @@ static void SetSubtitlesOptions( input_thread_t *p_input )
const int i_delay = var_CreateGetInteger( p_input, "sub-delay" );
if( i_delay != 0 )
var_SetInteger( p_input, "spu-delay", (mtime_t)i_delay * 100000 );
var_SetInteger( p_input, "spu-delay", CLOCK_FREQ * i_delay / 10 );
}
static void GetVarSlaves( input_thread_t *p_input,
......
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