[vlc-devel] [PATCH 2/4] prefetch: Don't activate for preparse

Hugo Beauzée-Luyssen hugo at beauzee.fr
Tue Oct 8 18:16:15 CEST 2019


---
 modules/stream_filter/prefetch.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/stream_filter/prefetch.c b/modules/stream_filter/prefetch.c
index 087204ff99..8ce8a61464 100644
--- a/modules/stream_filter/prefetch.c
+++ b/modules/stream_filter/prefetch.c
@@ -429,6 +429,8 @@ static int Open(vlc_object_t *obj)
 {
     stream_t *stream = (stream_t *)obj;
 
+    if (stream->b_preparsing)
+        return VLC_EGENERIC;
     bool fast_seek;
     /* For local files, the operating system is likely to do a better work at
      * caching/prefetching. Also, prefetching with this module could cause
-- 
2.20.1



More information about the vlc-devel mailing list