[vlc-devel] [PATCH 04/18] demux: initialize the ES from the known category

Steve Lhomme robux4 at videolabs.io
Wed Jul 5 17:00:18 CEST 2017


---
 src/input/demux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/demux.c b/src/input/demux.c
index ecc81e9dac..466730a21e 100644
--- a/src/input/demux.c
+++ b/src/input/demux.c
@@ -514,7 +514,7 @@ decoder_t *demux_PacketizerNew( demux_t *p_demux, es_format_t *p_fmt, const char
     p_packetizer->pf_packetize = NULL;
 
     p_packetizer->fmt_in = *p_fmt;
-    es_format_Init( &p_packetizer->fmt_out, UNKNOWN_ES, 0 );
+    es_format_Init( &p_packetizer->fmt_out, p_fmt->i_cat, 0 );
 
     p_packetizer->p_module = module_need( p_packetizer, "packetizer", NULL, false );
     if( !p_packetizer->p_module )
-- 
2.12.1



More information about the vlc-devel mailing list