[vlc-commits] audiobargraph_a: parse config chain options

Rafaël Carré git at videolan.org
Thu Apr 17 16:41:02 CEST 2014


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Apr 17 16:40:37 2014 +0200| [a05e4de0c3b173290e871ab83fbf5c47ddb9c727] | committer: Rafaël Carré

audiobargraph_a: parse config chain options

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

 modules/audio_filter/audiobargraph_a.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/audio_filter/audiobargraph_a.c b/modules/audio_filter/audiobargraph_a.c
index de08fde..81275d6 100644
--- a/modules/audio_filter/audiobargraph_a.c
+++ b/modules/audio_filter/audiobargraph_a.c
@@ -117,6 +117,12 @@ static int Open( vlc_object_t *p_this )
     if (!p_sys)
         return VLC_ENOMEM;
 
+    static const char *const options[] = {
+        "bargraph", "bargraph_repetition", "silence", "time_window",
+        "alarm_threshold", "repetition_time", NULL
+    };
+    config_ChainParse(p_filter, CFG_PREFIX, options, p_filter->p_cfg);
+
     p_sys->bargraph = !!var_CreateGetInteger(p_filter, CFG_PREFIX "bargraph");
     p_sys->bargraph_repetition = var_CreateGetInteger(p_filter, CFG_PREFIX "bargraph_repetition");
     p_sys->silence = !!var_CreateGetInteger(p_filter, CFG_PREFIX "silence");



More information about the vlc-commits mailing list