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

attachment: implement ACCESS_GET_SIZE

parent 09523e12
...@@ -122,28 +122,28 @@ static int Seek(access_t *access, uint64_t position) ...@@ -122,28 +122,28 @@ static int Seek(access_t *access, uint64_t position)
/* */ /* */
static int Control(access_t *access, int query, va_list args) static int Control(access_t *access, int query, va_list args)
{ {
VLC_UNUSED(access); input_attachment_t *a = (void *)access->p_sys;
switch (query) switch (query)
{ {
/* */
case ACCESS_CAN_SEEK: case ACCESS_CAN_SEEK:
case ACCESS_CAN_FASTSEEK: case ACCESS_CAN_FASTSEEK:
case ACCESS_CAN_PAUSE: case ACCESS_CAN_PAUSE:
case ACCESS_CAN_CONTROL_PACE: { case ACCESS_CAN_CONTROL_PACE:
bool *b = va_arg(args, bool*); *va_arg(args, bool *) = true;
*b = true; break;
return VLC_SUCCESS; case ACCESS_GET_SIZE:
} *va_arg(args, uint64_t *) = a->i_data;
case ACCESS_GET_PTS_DELAY: { break;
int64_t *d = va_arg(args, int64_t *); case ACCESS_GET_PTS_DELAY:
*d = DEFAULT_PTS_DELAY; *va_arg(args, int64_t *) = DEFAULT_PTS_DELAY;
return VLC_SUCCESS; break;
}
case ACCESS_SET_PAUSE_STATE: case ACCESS_SET_PAUSE_STATE:
return VLC_SUCCESS; return VLC_SUCCESS;
default: default:
return VLC_EGENERIC; return VLC_EGENERIC;
} }
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