vlc | branch: master | Steve Lhomme <[email protected]> | Sat May 5 10:05:20 2018 +0200| [2fd69d388333147b7cc823b754df6772ddb1269e] | committer: Rémi Denis-Courmont
input: turn the sub-delay into spu-delay using CLOCK_FREQ Signed-off-by: Rémi Denis-Courmont <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2fd69d388333147b7cc823b754df6772ddb1269e --- 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 ff2f894a8c..92f937b019 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -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, _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
