[vlc-commits] input: turn the sub-delay into spu-delay using CLOCK_FREQ
Steve Lhomme
git at videolan.org
Sat May 5 18:10:31 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | 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 <remi at remlab.net>
> 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,
More information about the vlc-commits
mailing list