[vlc-commits] input: convert "short-jump-size" to mtime_t on the fly

Steve Lhomme git at videolan.org
Sat May 5 18:10:32 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Sat May  5 10:07:34 2018 +0200| [71384c0573d192417fc1d6d1afb6d89bdf1cfd38] | committer: Rémi Denis-Courmont

input: convert "short-jump-size" to mtime_t on the fly

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 src/input/input.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 92f937b019..7d9314ce8b 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1777,8 +1777,8 @@ static void ControlNav( input_thread_t *p_input, int i_type )
     /* Seek or change volume if the input doesn't have navigation or viewpoint */
     if( seek_direction != 0 )
     {
-        mtime_t it = var_InheritInteger( p_input, "short-jump-size" );
-        var_SetInteger( p_input, "time-offset", it * seek_direction * CLOCK_FREQ );
+        mtime_t it = CLOCK_FREQ * seek_direction * var_InheritInteger( p_input, "short-jump-size" );
+        var_SetInteger( p_input, "time-offset", it );
     }
     else
     {



More information about the vlc-commits mailing list