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

access: implement STREAM_GET_PRIVATE_BLOCK

parent d2e07d11
...@@ -326,6 +326,19 @@ static int AStreamControl(stream_t *s, int cmd, va_list args) ...@@ -326,6 +326,19 @@ static int AStreamControl(stream_t *s, int cmd, va_list args)
return vlc_access_Seek(sys->access, pos); return vlc_access_Seek(sys->access, pos);
} }
case STREAM_GET_PRIVATE_BLOCK:
{
block_t **b = va_arg(args, block_t **);
bool *eof = va_arg(args, bool *);
if (access->pf_block == NULL)
return VLC_EGENERIC;
*b = vlc_access_Eof(access) ? NULL : vlc_access_Block(access);
*eof = (*b == NULL) && vlc_access_Eof(access);
break;
}
default: default:
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
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