[vlc-devel] [PATCH] Convert int to bool in Audio Bargraph Filter

Rémi Denis-Courmont remi at remlab.net
Tue Apr 7 10:08:14 CEST 2020


Same problem as previous version.

Le 7 avril 2020 10:48:50 GMT+03:00, Vedanta Nayak <vedantnayak2 at gmail.com> a écrit :
>---
> modules/audio_filter/audiobargraph_a.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/modules/audio_filter/audiobargraph_a.c
>b/modules/audio_filter/audiobargraph_a.c
>index e744b52f24..d5bdad5be0 100644
>--- a/modules/audio_filter/audiobargraph_a.c
>+++ b/modules/audio_filter/audiobargraph_a.c
>@@ -74,9 +74,9 @@ vlc_module_begin ()
> 
>     add_obsolete_string( CFG_PREFIX "address" )
>     add_obsolete_integer( CFG_PREFIX "port" )
>-    add_integer( CFG_PREFIX "bargraph", 1, BARGRAPH_TEXT,
>BARGRAPH_LONGTEXT, false ) // FIXME: this is a bool
>+    add_bool( CFG_PREFIX "bargraph", false, BARGRAPH_TEXT,
>BARGRAPH_LONGTEXT, false ) 
>add_integer( CFG_PREFIX "bargraph_repetition", 4,
>BARGRAPH_REPETITION_TEXT, BARGRAPH_REPETITION_LONGTEXT, false )
>-    add_integer( CFG_PREFIX "silence", 1, SILENCE_TEXT,
>SILENCE_LONGTEXT, false ) // FIXME: this is a bool
>+    add_bool( CFG_PREFIX "silence", false, SILENCE_TEXT,
>SILENCE_LONGTEXT, false )
>add_integer( CFG_PREFIX "time_window", 5000, TIME_WINDOW_TEXT,
>TIME_WINDOW_LONGTEXT, false )
>add_float( CFG_PREFIX "alarm_threshold", 0.02, ALARM_THRESHOLD_TEXT,
>ALARM_THRESHOLD_LONGTEXT, false )
>add_integer( CFG_PREFIX "repetition_time", 2000, REPETITION_TIME_TEXT,
>REPETITION_TIME_LONGTEXT, false )
>-- 
>2.26.0
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20200407/0521c7a6/attachment.html>


More information about the vlc-devel mailing list