From e32fee6676a8fa726c5dc3016853662965e83f6a Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Mon, 5 Dec 2022 14:06:45 +0100 Subject: [PATCH] input: add an option to force preparsing For input items without a know type (imem access for example) preparsing is not possible. With this option we allow forcing the preparsing in that case, optionally. By default the current behavior remains the same. --- include/vlc_input_item.h | 1 + src/preparser/preparser.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h index d43dbef158..18ee564f58 100644 --- a/include/vlc_input_item.h +++ b/include/vlc_input_item.h @@ -483,6 +483,7 @@ typedef enum input_item_meta_request_option_t META_REQUEST_OPTION_FETCH_NETWORK = 0x08, META_REQUEST_OPTION_FETCH_ANY = 0x0C, META_REQUEST_OPTION_DO_INTERACT = 0x10, + META_REQUEST_OPTION_NO_SKIP = 0x20, } input_item_meta_request_option_t; /* status of the on_preparse_ended() callback */ diff --git a/src/preparser/preparser.c b/src/preparser/preparser.c index d11694e081..2a2ff5c09e 100644 --- a/src/preparser/preparser.c +++ b/src/preparser/preparser.c @@ -323,6 +323,7 @@ int input_preparser_Push( input_preparser_t *preparser, item->b_preparse_interact = true; vlc_mutex_unlock( &item->lock ); + if (!(i_options & META_REQUEST_OPTION_NO_SKIP)) switch( i_type ) { case ITEM_TYPE_NODE: