[vlc-devel] [PATCH 2/2] input: also reduce JUMP controls

Thomas Guillem thomas at gllm.fr
Wed Oct 16 12:58:51 CEST 2019


---
 src/input/input.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/input/input.c b/src/input/input.c
index fe06654a4d5..03c69caddcb 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1439,6 +1439,16 @@ static size_t ControlGetReducedIndexLocked( input_thread_t *p_input,
         {
             return sys->i_control - 1;
         }
+        else if ( i_ct == INPUT_CONTROL_JUMP_TIME )
+        {
+            c->param.time.i_val += prev_control->param.time.i_val;
+            return sys->i_control - 1;
+        }
+        else if ( i_ct == INPUT_CONTROL_JUMP_POSITION )
+        {
+            c->param.pos.f_val += prev_control->param.pos.f_val;
+            return sys->i_control - 1;
+        }
     }
 
     return sys->i_control;
-- 
2.20.1



More information about the vlc-devel mailing list