[vlc-commits] input: make provision for different codec capability types
Rémi Denis-Courmont
git at videolan.org
Mon Jun 19 19:59:19 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 19 20:22:53 2017 +0300| [5f9515b6479ab4bf592807c5108af0fd4dda9dd1] | committer: Rémi Denis-Courmont
input: make provision for different codec capability types
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5f9515b6479ab4bf592807c5108af0fd4dda9dd1
---
src/input/decoder.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index c06e958e96..7614b8b762 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -170,7 +170,15 @@ static int LoadDecoder( decoder_t *p_dec, bool b_packetizer,
/* Find a suitable decoder/packetizer module */
if( !b_packetizer )
- p_dec->p_module = module_need( p_dec, "decoder", "$codec", false );
+ {
+ const char caps[ES_CATEGORY_COUNT][16] = {
+ [VIDEO_ES] = "decoder",
+ [AUDIO_ES] = "decoder",
+ [SPU_ES] = "decoder",
+ };
+ p_dec->p_module = module_need( p_dec, caps[p_dec->fmt_in.i_cat],
+ "$codec", false );
+ }
else
p_dec->p_module = module_need( p_dec, "packetizer", "$packetizer", false );
More information about the vlc-commits
mailing list