[vlc-devel] [RFC PATCH 2/8] decoder: store the es_id
Thomas Guillem
thomas at gllm.fr
Thu Apr 21 18:24:32 CEST 2016
Since it can be overridden by the packetizer
---
src/input/decoder.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index 51a8f90..28f53f8 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -77,6 +77,7 @@ struct decoder_owner_sys_t
bool b_packetizer;
/* Current format in use by the output */
+ int i_es_id;
es_format_t fmt;
/* */
@@ -1565,6 +1566,7 @@ static decoder_t * CreateDecoder( vlc_object_t *p_parent,
p_owner->p_sout_input = NULL;
p_owner->p_packetizer = NULL;
p_owner->b_notify_input = b_notify_input && p_input != NULL;
+ p_owner->i_es_id = fmt->i_id;
p_owner->b_fmt_description = false;
p_owner->p_description = NULL;
--
2.8.0.rc3
More information about the vlc-devel
mailing list