[vlc-devel] [PATCH] taglib: Enable caching on the IOStream
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Fri Oct 11 13:16:51 CEST 2019
On Thu, Oct 10, 2019, at 3:54 PM, Hugo Beauzée-Luyssen wrote:
> We can't use vlc_stream_NewURL as it will include the skiptags filter
> ---
> modules/meta_engine/taglib.cpp | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
> index c71a66ca58..2826a7d85c 100644
> --- a/modules/meta_engine/taglib.cpp
> +++ b/modules/meta_engine/taglib.cpp
> @@ -842,6 +842,9 @@ static int ReadMeta( vlc_object_t* p_this)
> free( psz_uri );
> if( p_stream == NULL )
> return VLC_EGENERIC;
> + stream_t* p_filter = vlc_stream_FilterNew( p_stream, "cache" );
> + if( p_filter )
> + p_stream = p_filter;
>
> VlcIostream s( p_stream );
> f = FileRef( &s );
Hi
I realize this probably misses a bit of context, basically this supersedes the previous prefetch & skiptags patches. You can find the entire patchset here: https://code.videolan.org/chouquette/vlc/commits/taglib_network2
Regards,
--
Hugo Beauzée-Luyssen
hugo at beauzee.fr
More information about the vlc-devel
mailing list