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

input: use STREAM_SET_PAUSE_STATE (refs #8414)

parent e3ff3215
...@@ -1593,9 +1593,9 @@ static void ControlPause( input_thread_t *p_input, mtime_t i_control_date ) ...@@ -1593,9 +1593,9 @@ static void ControlPause( input_thread_t *p_input, mtime_t i_control_date )
if( p_input->p->b_can_pause ) if( p_input->p->b_can_pause )
{ {
if( p_input->p->input.p_access ) if( p_input->p->input.p_stream != NULL )
i_ret = access_Control( p_input->p->input.p_access, i_ret = stream_Control( p_input->p->input.p_stream,
ACCESS_SET_PAUSE_STATE, true ); STREAM_SET_PAUSE_STATE, true );
else else
i_ret = demux_Control( p_input->p->input.p_demux, i_ret = demux_Control( p_input->p->input.p_demux,
DEMUX_SET_PAUSE_STATE, true ); DEMUX_SET_PAUSE_STATE, true );
...@@ -1627,9 +1627,9 @@ static void ControlUnpause( input_thread_t *p_input, mtime_t i_control_date ) ...@@ -1627,9 +1627,9 @@ static void ControlUnpause( input_thread_t *p_input, mtime_t i_control_date )
if( p_input->p->b_can_pause ) if( p_input->p->b_can_pause )
{ {
if( p_input->p->input.p_access ) if( p_input->p->input.p_stream )
i_ret = access_Control( p_input->p->input.p_access, i_ret = stream_Control( p_input->p->input.p_stream,
ACCESS_SET_PAUSE_STATE, false ); STREAM_SET_PAUSE_STATE, false );
else else
i_ret = demux_Control( p_input->p->input.p_demux, i_ret = demux_Control( p_input->p->input.p_demux,
DEMUX_SET_PAUSE_STATE, false ); DEMUX_SET_PAUSE_STATE, false );
......
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