[vlc-commits] channel_mixer: remap: parse config_chain

Thomas Guillem git at videolan.org
Thu Jul 13 17:19:17 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jul 13 11:34:16 2017 +0200| [b8b7eb6d6b65b5ad580e1b6106b365780c05456f] | committer: Thomas Guillem

channel_mixer: remap: parse config_chain

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

 modules/audio_filter/channel_mixer/remap.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/audio_filter/channel_mixer/remap.c b/modules/audio_filter/channel_mixer/remap.c
index 37e51f5e6d..064be9b64f 100644
--- a/modules/audio_filter/channel_mixer/remap.c
+++ b/modules/audio_filter/channel_mixer/remap.c
@@ -278,6 +278,13 @@ static int OpenFilter( vlc_object_t *p_this )
     if( unlikely( p_sys == NULL ) )
         return VLC_ENOMEM;
 
+    static const char *const options[] = {
+        "channel-left", "channel-center", "channel-right", "channel-rearleft",
+        "channel-rearcenter", "channel-rearright", "channel-middleleft",
+        "channel-middleright", "channel-lfe", "normalize",
+    };
+    config_ChainParse(p_filter, REMAP_CFG, options, p_filter->p_cfg);
+
     /* get number of and layout of input channels */
     uint32_t i_output_physical = 0;
     int8_t pi_map_ch[ AOUT_CHAN_MAX ] = { 0 }; /* which out channel each in channel is mapped to */



More information about the vlc-commits mailing list