[vlc-commits] input: input_ControlPush: constify the control param

Thomas Guillem git at videolan.org
Tue Sep 4 10:11:39 CEST 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Sep  4 10:10:52 2018 +0200| [02402f4dc9bca65c7216f03fe1419771b27cf550] | committer: Thomas Guillem

input: input_ControlPush: constify the control param

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

 src/input/input.c          | 6 +++---
 src/input/input_internal.h | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index c76064107c..f120b21ba9 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -70,7 +70,7 @@ static void             End     ( input_thread_t *p_input );
 static void             MainLoop( input_thread_t *p_input, bool b_interactive );
 
 static inline int ControlPop( input_thread_t *, int *, input_control_param_t *, vlc_tick_t i_deadline, bool b_postpone_seek );
-static void       ControlRelease( int i_type, input_control_param_t *p_param );
+static void       ControlRelease( int i_type, const input_control_param_t *p_param );
 static bool       ControlIsSeekRequest( int i_type );
 static bool       Control( input_thread_t *, int, input_control_param_t );
 static void       ControlPause( input_thread_t *, vlc_tick_t );
@@ -1481,7 +1481,7 @@ static void End( input_thread_t * p_input )
  * Control
  *****************************************************************************/
 void input_ControlPush( input_thread_t *p_input,
-                        int i_type, input_control_param_t *p_param )
+                        int i_type, const input_control_param_t *p_param )
 {
     input_thread_private_t *sys = input_priv(p_input);
 
@@ -1624,7 +1624,7 @@ static bool ControlIsSeekRequest( int i_type )
     }
 }
 
-static void ControlRelease( int i_type, input_control_param_t *p_param )
+static void ControlRelease( int i_type, const input_control_param_t *p_param )
 {
     if( p_param == NULL )
         return;
diff --git a/src/input/input_internal.h b/src/input/input_internal.h
index 08a3a1d5f1..d49f9dc403 100644
--- a/src/input/input_internal.h
+++ b/src/input/input_internal.h
@@ -241,7 +241,7 @@ enum input_control_e
 
 /* Internal helpers */
 
-void input_ControlPush( input_thread_t *, int, input_control_param_t * );
+void input_ControlPush( input_thread_t *, int, const input_control_param_t * );
 
 /* XXX for string value you have to allocate it before calling
  * input_ControlPushHelper



More information about the vlc-commits mailing list