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