Browse Source

input: input_ControlPush: constify the control param

pull/71/head
Thomas Guillem 8 years ago
parent
commit
02402f4dc9
  1. 6
      src/input/input.c
  2. 2
      src/input/input_internal.h

6
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;

2
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

Loading…
Cancel
Save