[vlc-devel] [PATCH] taglib: Enable prefetch on the IOStream

Rémi Denis-Courmont remi at remlab.net
Mon Oct 28 13:47:59 CET 2019


Why not "prefetch,cache" ?

Le 28 octobre 2019 13:51:27 GMT+02:00, "Hugo Beauzée-Luyssen" <hugo at beauzee.fr> a écrit :
>We can't do it through 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..82443f057c 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, "prefetch" );
>+    if( p_filter )
>+        p_stream = p_filter;
> 
>     VlcIostream s( p_stream );
>     f = FileRef( &s );
>-- 
>2.20.1
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20191028/9f55c1f3/attachment.html>


More information about the vlc-devel mailing list