Commit a9c070fa authored by Laurent Aimar's avatar Laurent Aimar

Cosmetics (input)

parent 04ee4c9f
......@@ -2398,6 +2398,7 @@ static int InputSourceInit( input_thread_t *p_input,
/* Get infos from access */
if( !p_input->b_preparsing )
{
bool b_can_seek;
access_Control( in->p_access,
ACCESS_GET_PTS_DELAY, &in->i_pts_delay );
......@@ -2414,15 +2415,13 @@ static int InputSourceInit( input_thread_t *p_input,
in->b_can_rate_control = in->b_can_pace_control;
in->b_rescale_ts = true;
access_Control( in->p_access, ACCESS_CAN_PAUSE,
&in->b_can_pause );
access_Control( in->p_access, ACCESS_CAN_PAUSE, &in->b_can_pause );
var_SetBool( p_input, "can-pause", in->b_can_pause || !in->b_can_pace_control ); /* XXX temporary because of es_out_timeshift*/
var_SetBool( p_input, "can-rate", !in->b_can_pace_control || in->b_can_rate_control ); /* XXX temporary because of es_out_timeshift*/
var_SetBool( p_input, "can-rewind", !in->b_rescale_ts && !in->b_can_pace_control );
access_Control( in->p_access, ACCESS_CAN_SEEK,
&val.b_bool );
var_Set( p_input, "can-seek", val );
access_Control( in->p_access, ACCESS_CAN_SEEK, &b_can_seek );
var_SetBool( p_input, "can-seek", b_can_seek );
}
/* */
......
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