vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Mon May  7 15:12:45 
2018 +0200| [4bc45434fd72999b3a2724ab29ee36094ab4bf1a] | committer: Steve Lhomme

input: express "spu-delay" as a 1/10th of second

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4bc45434fd72999b3a2724ab29ee36094ab4bf1a
---

 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 e99c44a611..1d6f95c6cb 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", CLOCK_FREQ * i_delay / 10 );
+        var_SetInteger( p_input, "spu-delay", VLC_TICK_FROM_SEC(i_delay) / 10);
 }
 
 static void GetVarSlaves( input_thread_t *p_input,

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to