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

Simplification

parent 021709ec
...@@ -1538,24 +1538,22 @@ static void ControlPause( input_thread_t *p_input, mtime_t i_control_date ) ...@@ -1538,24 +1538,22 @@ static void ControlPause( input_thread_t *p_input, mtime_t i_control_date )
if( i_ret ) if( i_ret )
{ {
msg_Warn( p_input, "cannot set pause state" ); msg_Warn( p_input, "cannot set pause state" );
i_state = p_input->p->i_state; return;
} }
} }
/* */ /* */
if( !i_ret ) i_ret = es_out_SetPauseState( p_input->p->p_es_out,
p_input->p->b_can_pause, true,
i_control_date );
if( i_ret )
{ {
i_ret = es_out_SetPauseState( p_input->p->p_es_out, p_input->p->b_can_pause, true, i_control_date ); msg_Warn( p_input, "cannot set pause state at es_out level" );
if( i_ret ) return;
{
msg_Warn( p_input, "cannot set pause state at es_out level" );
i_state = p_input->p->i_state;
}
} }
/* Switch to new state */ /* Switch to new state */
input_ChangeState( p_input, i_state ); input_ChangeState( p_input, i_state );
} }
static void ControlUnpause( input_thread_t *p_input, mtime_t i_control_date ) static void ControlUnpause( input_thread_t *p_input, mtime_t i_control_date )
......
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