[vlc-devel] [RFC 01/82] input: Let the meta reader know if the input is being preparsed

Pierre Lamot pierre at videolabs.io
Fri Feb 1 14:01:05 CET 2019


From: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

Or if it's being played back.
---
 include/vlc_demux.h | 1 +
 src/input/input.c   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/include/vlc_demux.h b/include/vlc_demux.h
index 401260b1b5..399e6e00cb 100644
--- a/include/vlc_demux.h
+++ b/include/vlc_demux.h
@@ -55,6 +55,7 @@ typedef struct demux_meta_t
 {
     struct vlc_common_members obj;
     input_item_t *p_item; /***< the input item that is being read */
+    bool b_preparsing; /***< true if the item is being preparsed */
 
     vlc_meta_t *p_meta;                 /**< meta data */
 
diff --git a/src/input/input.c b/src/input/input.c
index c85d08cb43..8c23d75b94 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2847,6 +2847,7 @@ static void InputSourceMeta( input_thread_t *p_input,
     if( unlikely(p_demux_meta == NULL) )
         return;
     p_demux_meta->p_item = input_priv(p_input)->p_item;
+    p_demux_meta->b_preparsing = input_priv(p_input)->b_preparsing;
 
     module_t *p_id3 = module_need( p_demux_meta, "meta reader", NULL, false );
     if( p_id3 )
-- 
2.19.1



More information about the vlc-devel mailing list