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

stream: add STREAM_CAN_PAUSE and STREAM_CAN_CONTROL_PACE

parent 902b733b
......@@ -90,6 +90,8 @@ enum stream_query_e
/* capabilities */
STREAM_CAN_SEEK, /**< arg1= bool * res=cannot fail*/
STREAM_CAN_FASTSEEK, /**< arg1= bool * res=cannot fail*/
STREAM_CAN_PAUSE, /**< arg1= bool * res=cannot fail*/
STREAM_CAN_CONTROL_PACE, /**< arg1= bool * res=cannot fail*/
/* */
STREAM_SET_POSITION, /**< arg1= uint64_t res=can fail */
......
......@@ -568,9 +568,12 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
case STREAM_CAN_SEEK:
return access_vaControl( p_access, ACCESS_CAN_SEEK, args );
case STREAM_CAN_FASTSEEK:
return access_vaControl( p_access, ACCESS_CAN_FASTSEEK, args );
case STREAM_CAN_PAUSE:
return access_vaControl( p_access, ACCESS_CAN_PAUSE, args );
case STREAM_CAN_CONTROL_PACE:
return access_vaControl( p_access, ACCESS_CAN_CONTROL_PACE, args );
case STREAM_GET_POSITION:
pi_64 = va_arg( args, uint64_t * );
......
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