[vlc-commits] input/demux: add preparsing flag
Thomas Guillem
git at videolan.org
Tue Jun 7 09:29:03 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jun 7 09:27:54 2016 +0200| [8de131ac0d9b8f1cbfa56a0b2d6e6f2403a108d8] | committer: Thomas Guillem
input/demux: add preparsing flag
This flag will be used to notify the demux module that we are preparsing.
Fixes #17024
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8de131ac0d9b8f1cbfa56a0b2d6e6f2403a108d8
---
include/vlc_demux.h | 2 ++
src/input/demux.c | 5 +++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/include/vlc_demux.h b/include/vlc_demux.h
index f4baeea..a42998b 100644
--- a/include/vlc_demux.h
+++ b/include/vlc_demux.h
@@ -59,6 +59,8 @@ struct demux_t
/* es output */
es_out_t *out; /* our p_es_out */
+ bool b_preparsing; /* True if the demux is used to preparse */
+
/* set by demuxer */
int (*pf_demux) ( demux_t * ); /* demux one frame only */
int (*pf_control)( demux_t *, int i_query, va_list args);
diff --git a/src/input/demux.c b/src/input/demux.c
index c532752..6336742 100644
--- a/src/input/demux.c
+++ b/src/input/demux.c
@@ -128,8 +128,9 @@ demux_t *demux_NewAdvanced( vlc_object_t *p_obj, input_thread_t *p_parent_input,
p_demux->psz_access, p_demux->psz_demux,
p_demux->psz_location, p_demux->psz_file );
- p_demux->s = s;
- p_demux->out = out;
+ p_demux->s = s;
+ p_demux->out = out;
+ p_demux->b_preparsing = b_preparsing;
p_demux->pf_demux = NULL;
p_demux->pf_control = NULL;
More information about the vlc-commits
mailing list