Commit b3f4cad5 authored by François Cartegnie's avatar François Cartegnie 🤞

stream_filter: skiptags: fix size error

parent c20ff0b9
......@@ -180,8 +180,11 @@ static int Control(stream_t *stream, int query, va_list args)
}
else if(query == STREAM_GET_SIZE)
{
*va_arg(args, uint64_t *) = stream_Size(stream->s) - sys->header_skip;
return VLC_SUCCESS;
uint64_t size;
int i_ret = vlc_stream_GetSize(stream->s, &size);
if(i_ret == VLC_SUCCESS)
*va_arg(args, uint64_t *) = size - sys->header_skip;
return i_ret;
}
return vlc_stream_vaControl(stream->s, query, args);
......
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