[vlc-devel] [RFC PATCH 06/17] spdif: add MPGA support (disabled by default)
Thomas Guillem
thomas at gllm.fr
Mon Jul 25 17:23:55 CEST 2016
---
modules/codec/spdif.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/codec/spdif.c b/modules/codec/spdif.c
index c797ab4..d666a1e 100644
--- a/modules/codec/spdif.c
+++ b/modules/codec/spdif.c
@@ -56,6 +56,13 @@ static int OpenDecoder( vlc_object_t *p_this )
switch( p_dec->fmt_in.i_codec )
{
+ case VLC_CODEC_MPGA:
+ case VLC_CODEC_MP3:
+ /* Formats accepted if forced (--codec=spdif) AND spdif (--spdif) is
+ * enabled */
+ if( !p_dec->obj.force || !var_InheritBool( p_dec, "spdif" ) )
+ return VLC_EGENERIC;
+ break;
case VLC_CODEC_A52:
case VLC_CODEC_EAC3:
case VLC_CODEC_DTS:
--
2.8.1
More information about the vlc-devel
mailing list