[vlc-commits] input: remove legacy var dependency

Thomas Guillem git at videolan.org
Wed Nov 7 17:09:52 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Nov  7 17:07:12 2018 +0100| [cfd079e163cee5b37052ed6b19cb505791d5efce] | committer: Thomas Guillem

input: remove legacy var dependency

Use INPUT_CONTROL_JUMP_TIME instead of "time-offset" callback.

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

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

diff --git a/src/input/input.c b/src/input/input.c
index 57e029ebb3..7265ac6cd6 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1827,7 +1827,10 @@ static void ControlNav( input_thread_t *p_input, int i_type )
     if( seek_direction != 0 )
     {
         vlc_tick_t it = vlc_tick_from_sec( seek_direction * var_InheritInteger( p_input, "short-jump-size" ) );
-        var_SetInteger( p_input, "time-offset", it );
+        Control( p_input, INPUT_CONTROL_JUMP_TIME, (input_control_param_t) {
+            .time.b_fast_seek = false,
+            .time.i_val = it
+        });
     }
     else
     {



More information about the vlc-commits mailing list