Commit 2080dcb8 authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

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

parent 16f01fa1
...@@ -178,6 +178,11 @@ static int Control(stream_t *stream, int query, va_list args) ...@@ -178,6 +178,11 @@ static int Control(stream_t *stream, int query, va_list args)
*va_arg( args, const block_t ** ) = sys->p_tags; *va_arg( args, const block_t ** ) = sys->p_tags;
return VLC_SUCCESS; return VLC_SUCCESS;
} }
else if(query == STREAM_GET_SIZE)
{
*va_arg(args, uint64_t *) = stream_Size(stream->s) - sys->header_skip;
return VLC_SUCCESS;
}
return vlc_stream_vaControl(stream->s, query, args); 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