[vlc-commits] taglib: Enable prefetch/cache on the IOStream
Hugo Beauzée-Luyssen
git at videolan.org
Tue Oct 29 11:56:08 CET 2019
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Oct 8 17:21:20 2019 +0200| [976cd219465a72daa02d22e60c9ac4c704c0b18b] | committer: Hugo Beauzée-Luyssen
taglib: Enable prefetch/cache on the IOStream
We can't do it through vlc_stream_NewURL as it will include the
skiptags filter
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=976cd219465a72daa02d22e60c9ac4c704c0b18b
---
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..3d1cb60fd5 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,cache" );
+ if( p_filter )
+ p_stream = p_filter;
VlcIostream s( p_stream );
f = FileRef( &s );
More information about the vlc-commits
mailing list