[vlc-commits] demux: initialize the ES from the known category

Steve Lhomme git at videolan.org
Fri Jul 7 19:18:14 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Jul  5 17:00:18 2017 +0200| [65a9096dac12642a9e85585f07bbe9641746a9d7] | committer: Rémi Denis-Courmont

demux: initialize the ES from the known category

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=65a9096dac12642a9e85585f07bbe9641746a9d7
---

 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 )



More information about the vlc-commits mailing list