[vlc-commits] decoder: initialize the ES from the known category
Steve Lhomme
git at videolan.org
Fri Jul 7 19:18:10 CEST 2017
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Jul 5 17:00:17 2017 +0200| [30e085e947a6e3dcf14e3ec7af65002c717da092] | committer: Rémi Denis-Courmont
decoder: 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=30e085e947a6e3dcf14e3ec7af65002c717da092
---
src/input/decoder.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index dac313737a..9e1b01be92 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -166,7 +166,7 @@ static int LoadDecoder( decoder_t *p_dec, bool b_packetizer,
p_dec->pf_flush = NULL;
es_format_Copy( &p_dec->fmt_in, p_fmt );
- es_format_Init( &p_dec->fmt_out, UNKNOWN_ES, 0 );
+ es_format_Init( &p_dec->fmt_out, p_fmt->i_cat, 0 );
/* Find a suitable decoder/packetizer module */
if( !b_packetizer )
@@ -217,7 +217,7 @@ static int ReloadDecoder( decoder_t *p_dec, bool b_packetizer,
{
/* Copy p_fmt since it can be destroyed by UnloadDecoder */
es_format_t fmt_in;
- es_format_Init( &fmt_in, UNKNOWN_ES, 0 );
+ es_format_Init( &fmt_in, p_fmt->i_cat, 0 );
if( es_format_Copy( &fmt_in, p_fmt ) != VLC_SUCCESS )
{
p_dec->p_owner->error = true;
@@ -1688,7 +1688,7 @@ static decoder_t * CreateDecoder( vlc_object_t *p_parent,
atomic_init( &p_owner->reload, RELOAD_NO_REQUEST );
p_owner->b_idle = false;
- es_format_Init( &p_owner->fmt, UNKNOWN_ES, 0 );
+ es_format_Init( &p_owner->fmt, fmt->i_cat, 0 );
/* decoder fifo */
p_owner->p_fifo = block_FifoNew();
More information about the vlc-commits
mailing list