[vlc-commits] input: use of vlc_tick_from_samples() to convert sub-delay to spu-delay
Steve Lhomme
git at videolan.org
Tue Sep 25 12:19:45 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Sep 20 15:47:44 2018 +0200| [7323983195464a7ecc260be334c115df7522ef92] | committer: Steve Lhomme
input: use of vlc_tick_from_samples() to convert sub-delay to spu-delay
sub-delay is in 10 items per second, sub-delay is in vlc_tick
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7323983195464a7ecc260be334c115df7522ef92
---
src/input/input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/input.c b/src/input/input.c
index a0f9c5d072..8594cf03b8 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1011,7 +1011,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", VLC_TICK_FROM_SEC(i_delay) / 10);
+ var_SetInteger( p_input, "spu-delay", vlc_tick_from_samples(i_delay, 10) );
}
static void GetVarSlaves( input_thread_t *p_input,
More information about the vlc-commits
mailing list