Commit c8ef90d5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Small code factorization

parent 3d94fe87
...@@ -206,14 +206,13 @@ static inline void input_ControlPush( input_thread_t *p_input, ...@@ -206,14 +206,13 @@ static inline void input_ControlPush( input_thread_t *p_input,
memset( &p_input->p->control[0].val, 0, sizeof( vlc_value_t ) ); memset( &p_input->p->control[0].val, 0, sizeof( vlc_value_t ) );
} }
else else
if( p_input->p->i_control >= INPUT_CONTROL_FIFO_SIZE )
{
msg_Err( p_input, "input control fifo overflow, trashing type=%d",
i_type );
}
else
{ {
if( p_input->p->i_control >= INPUT_CONTROL_FIFO_SIZE )
{
msg_Err( p_input, "input control fifo overflow, trashing type=%d",
i_type );
vlc_mutex_unlock( &p_input->p->lock_control );
return;
}
p_input->p->control[p_input->p->i_control].i_type = i_type; p_input->p->control[p_input->p->i_control].i_type = i_type;
if( p_val ) if( p_val )
p_input->p->control[p_input->p->i_control].val = *p_val; p_input->p->control[p_input->p->i_control].val = *p_val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment