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

sdp: implement ACCESS_GET_SIZE

parent 367b9a8a
......@@ -107,6 +107,8 @@ static int Seek (access_t *access, uint64_t position)
static int Control (access_t *access, int query, va_list args)
{
access_sys_t *sys = access->p_sys;
switch (query)
{
case ACCESS_CAN_SEEK:
......@@ -119,6 +121,10 @@ static int Control (access_t *access, int query, va_list args)
return VLC_SUCCESS;
}
case ACCESS_GET_SIZE:
*va_arg(args, uint64_t *) = sys->length;
return VLC_SUCCESS;
case ACCESS_GET_PTS_DELAY:
{
int64_t *dp = va_arg(args, int64_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