[vlc-commits] input: also reduce JUMP controls

Thomas Guillem git at videolan.org
Fri Oct 25 14:04:39 CEST 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Oct 16 11:31:38 2019 +0200| [829c1a12125675e2bc6ce420364407bc646b6294] | committer: Thomas Guillem

input: also reduce JUMP controls

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

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

diff --git a/src/input/input.c b/src/input/input.c
index e3e3ecd19c..6879825969 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1441,6 +1441,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;



More information about the vlc-commits mailing list