Commit 20c8edde authored by François Cartegnie's avatar François Cartegnie 🤞

stream_filter: skiptags: return truncated size (fix #19390)

parent d834c043
......@@ -178,6 +178,14 @@ static int Control(stream_t *stream, int query, va_list args)
*va_arg( args, const block_t ** ) = sys->p_tags;
return VLC_SUCCESS;
}
else if(query == STREAM_GET_SIZE)
{
uint64_t size;
int i_ret = vlc_stream_GetSize(stream->p_source, &size);
if(i_ret == VLC_SUCCESS)
*va_arg(args, uint64_t *) = size - sys->header_skip;
return i_ret;
}
return vlc_stream_vaControl(stream->p_source, 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