[vlc-devel] [PATCH 3/4] skiptags: Don't activate on preparse

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


---
 modules/stream_filter/skiptags.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/stream_filter/skiptags.c b/modules/stream_filter/skiptags.c
index 1097fc2764..3fdce9a94f 100644
--- a/modules/stream_filter/skiptags.c
+++ b/modules/stream_filter/skiptags.c
@@ -198,6 +198,9 @@ static int Open(vlc_object_t *obj)
     block_t *p_tags = NULL, *p_tag = NULL;
     unsigned i_tagscount = 0;
 
+    if (stream->b_preparsing)
+        return VLC_EGENERIC;
+
     while (SkipTag(s, SkipID3Tag, &p_tag, &i_tagscount)||
            SkipTag(s, SkipAPETag, &p_tag, &i_tagscount))
     {
-- 
2.20.1



More information about the vlc-devel mailing list