[vlc-devel] [RFC] access: also use prefetch cache for block accesses

Thomas Guillem thomas at gllm.fr
Thu Mar 17 11:26:59 CET 2016


The prefetch cache is only used for non-fast-seekable accesses, (mainly network
accesses). One more memcpy is insignificant for network accesses that are
cached on a tmp file.

This add back the prefetch cache for http (since http2 is a block access).
---
 src/input/access.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/access.c b/src/input/access.c
index aac3d43..dc29cdc 100644
--- a/src/input/access.c
+++ b/src/input/access.c
@@ -401,7 +401,7 @@ stream_t *stream_AccessNew(vlc_object_t *parent, input_thread_t *input,
     if (sys->access->pf_block != NULL)
     {
         s->pf_read = AStreamReadBlock;
-        cachename = "cache_block";
+        cachename = "prefetch,cache_block";
     }
     else
     if (sys->access->pf_read != NULL)
-- 
2.7.0



More information about the vlc-devel mailing list