Commit 005039fa authored by Laurent Aimar's avatar Laurent Aimar

Added back pause (timeshift has to accept ACCESS_SET_PAUSE_STATE)

parent 9083952e
...@@ -522,27 +522,29 @@ static int Control( access_t *p_access, int i_query, va_list args ) ...@@ -522,27 +522,29 @@ static int Control( access_t *p_access, int i_query, va_list args )
switch( i_query ) switch( i_query )
{ {
case ACCESS_CAN_SEEK: case ACCESS_CAN_SEEK:
case ACCESS_CAN_FASTSEEK: case ACCESS_CAN_FASTSEEK:
pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t* ); pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t* );
*pb_bool = VLC_TRUE; *pb_bool = VLC_TRUE;
break; break;
case ACCESS_CAN_CONTROL_PACE: /* Not really true */ case ACCESS_CAN_CONTROL_PACE: /* Not really true */
case ACCESS_CAN_PAUSE: case ACCESS_CAN_PAUSE:
pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t* ); pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t* );
*pb_bool = VLC_TRUE; *pb_bool = VLC_TRUE;
break; break;
case ACCESS_GET_MTU: case ACCESS_GET_MTU:
pi_int = (int*)va_arg( args, int * ); pi_int = (int*)va_arg( args, int * );
*pi_int = 0; *pi_int = 0;
break; break;
/* Forward everything else to the source access */ case ACCESS_SET_PAUSE_STATE:
default: break;
return access2_vaControl( p_access->p_source, i_query, args );
/* Forward everything else to the source access */
default:
return access2_vaControl( p_access->p_source, i_query, args );
} }
return VLC_SUCCESS; return VLC_SUCCESS;
} }
......
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