[vlc-commits] config: remove advanced from add_module_list()
Rémi Denis-Courmont
git at videolan.org
Tue Apr 24 20:42:32 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 24 21:01:54 2018 +0300| [c86436596eecbd3409e5b2eb8df55ba18fb81422] | committer: Rémi Denis-Courmont
config: remove advanced from add_module_list()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c86436596eecbd3409e5b2eb8df55ba18fb81422
---
include/vlc_plugin.h | 2 +-
modules/stream_out/mosaic_bridge.c | 4 ++--
modules/stream_out/transcode/transcode.c | 12 ++++++------
modules/video_splitter/clone.c | 4 ++--
src/libvlc-module.c | 24 ++++++++++++------------
5 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
index 10c0af3255..65985c1dcd 100644
--- a/include/vlc_plugin.h
+++ b/include/vlc_plugin.h
@@ -389,7 +389,7 @@ VLC_METADATA_EXPORTS
add_string_inner(CONFIG_ITEM_MODULE, name, text, longtext, value) \
vlc_config_set (VLC_CONFIG_CAPABILITY, (const char *)(psz_caps));
-#define add_module_list( name, psz_caps, value, text, longtext, advc ) \
+#define add_module_list(name, psz_caps, value, text, longtext) \
add_string_inner(CONFIG_ITEM_MODULE_LIST, name, text, longtext, value) \
vlc_config_set (VLC_CONFIG_CAPABILITY, (const char *)(psz_caps));
diff --git a/modules/stream_out/mosaic_bridge.c b/modules/stream_out/mosaic_bridge.c
index e2b98ead91..668a361ada 100644
--- a/modules/stream_out/mosaic_bridge.c
+++ b/modules/stream_out/mosaic_bridge.c
@@ -152,8 +152,8 @@ vlc_module_begin ()
add_string( CFG_PREFIX "chroma", NULL, CHROMA_TEXT, CHROMA_LONGTEXT,
false )
- add_module_list( CFG_PREFIX "vfilter", "video filter",
- NULL, VFILTER_TEXT, VFILTER_LONGTEXT, false )
+ add_module_list(CFG_PREFIX "vfilter", "video filter", NULL,
+ VFILTER_TEXT, VFILTER_LONGTEXT)
add_integer_with_range( CFG_PREFIX "alpha", 255, 0, 255,
ALPHA_TEXT, ALPHA_LONGTEXT, false )
diff --git a/modules/stream_out/transcode/transcode.c b/modules/stream_out/transcode/transcode.c
index 684c3b9a0d..038aa5eae8 100644
--- a/modules/stream_out/transcode/transcode.c
+++ b/modules/stream_out/transcode/transcode.c
@@ -176,8 +176,8 @@ vlc_module_begin ()
MAXWIDTH_LONGTEXT, true )
add_integer( SOUT_CFG_PREFIX "maxheight", 0, MAXHEIGHT_TEXT,
MAXHEIGHT_LONGTEXT, true )
- add_module_list( SOUT_CFG_PREFIX "vfilter", "video filter",
- NULL, VFILTER_TEXT, VFILTER_LONGTEXT, false )
+ add_module_list(SOUT_CFG_PREFIX "vfilter", "video filter", NULL,
+ VFILTER_TEXT, VFILTER_LONGTEXT)
set_section( N_("Audio"), NULL )
add_module(SOUT_CFG_PREFIX "aenc", "encoder", NULL,
@@ -195,8 +195,8 @@ vlc_module_begin ()
ARATE_LONGTEXT, true )
change_integer_range( 0, 48000 )
add_obsolete_bool( SOUT_CFG_PREFIX "audio-sync" ) /*Since 2.2.0 */
- add_module_list( SOUT_CFG_PREFIX "afilter", "audio filter",
- NULL, AFILTER_TEXT, AFILTER_LONGTEXT, false )
+ add_module_list(SOUT_CFG_PREFIX "afilter", "audio filter", NULL,
+ AFILTER_TEXT, AFILTER_LONGTEXT)
set_section( N_("Overlays/Subtitles"), NULL )
add_module(SOUT_CFG_PREFIX "senc", "encoder", NULL,
@@ -205,8 +205,8 @@ vlc_module_begin ()
SCODEC_LONGTEXT, false )
add_bool( SOUT_CFG_PREFIX "soverlay", false, SCODEC_TEXT,
SCODEC_LONGTEXT, false )
- add_module_list( SOUT_CFG_PREFIX "sfilter", "spu source",
- NULL, SFILTER_TEXT, SFILTER_LONGTEXT, false )
+ add_module_list(SOUT_CFG_PREFIX "sfilter", "spu source", NULL,
+ SFILTER_TEXT, SFILTER_LONGTEXT)
set_section( N_("Miscellaneous"), NULL )
add_integer( SOUT_CFG_PREFIX "threads", 0, THREADS_TEXT,
diff --git a/modules/video_splitter/clone.c b/modules/video_splitter/clone.c
index 58a45b309b..0fb649c0fd 100644
--- a/modules/video_splitter/clone.c
+++ b/modules/video_splitter/clone.c
@@ -60,8 +60,8 @@ vlc_module_begin ()
set_subcategory( SUBCAT_VIDEO_SPLITTER )
add_integer( CFG_PREFIX "count", 2, COUNT_TEXT, COUNT_LONGTEXT, false )
- add_module_list( CFG_PREFIX "vout-list", "vout display", NULL,
- VOUTLIST_TEXT, VOUTLIST_LONGTEXT, true )
+ add_module_list(CFG_PREFIX "vout-list", "vout display", NULL,
+ VOUTLIST_TEXT, VOUTLIST_LONGTEXT)
add_shortcut( "clone" )
set_callbacks( Open, Close )
diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 765ff8f1f7..42f05916f8 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1533,8 +1533,8 @@ vlc_module_begin ()
change_string_list( ppsz_roles, ppsz_roles_text )
set_subcategory( SUBCAT_AUDIO_AFILTER )
- add_module_list( "audio-filter", "audio filter", NULL,
- AUDIO_FILTER_TEXT, AUDIO_FILTER_LONGTEXT, false )
+ add_module_list("audio-filter", "audio filter", NULL,
+ AUDIO_FILTER_TEXT, AUDIO_FILTER_LONGTEXT)
set_subcategory( SUBCAT_AUDIO_VISUAL )
add_module("audio-visual", "visualization", "none",
AUDIO_VISUAL_TEXT, AUDIO_VISUAL_LONGTEXT)
@@ -1656,12 +1656,12 @@ vlc_module_begin ()
change_short('V')
set_subcategory( SUBCAT_VIDEO_VFILTER )
- add_module_list( "video-filter", "video filter", NULL,
- VIDEO_FILTER_TEXT, VIDEO_FILTER_LONGTEXT, false )
+ add_module_list("video-filter", "video filter", NULL,
+ VIDEO_FILTER_TEXT, VIDEO_FILTER_LONGTEXT)
set_subcategory( SUBCAT_VIDEO_SPLITTER )
- add_module_list( "video-splitter", "video splitter", NULL,
- VIDEO_SPLITTER_TEXT, VIDEO_SPLITTER_LONGTEXT, false )
+ add_module_list("video-splitter", "video splitter", NULL,
+ VIDEO_SPLITTER_TEXT, VIDEO_SPLITTER_LONGTEXT)
add_obsolete_string( "vout-filter" ) /* since 2.0.0 */
#if 0
add_string( "pixel-ratio", "1", PIXEL_RATIO_TEXT, PIXEL_RATIO_TEXT )
@@ -1698,10 +1698,10 @@ vlc_module_begin ()
SUB_TEXT_SCALE_TEXT, SUB_TEXT_SCALE_LONGTEXT, false )
change_volatile ()
set_section( N_( "Overlays" ) , NULL )
- add_module_list( "sub-source", "sub source", NULL,
- SUB_SOURCE_TEXT, SUB_SOURCE_LONGTEXT, false )
- add_module_list( "sub-filter", "sub filter", NULL,
- SUB_FILTER_TEXT, SUB_FILTER_LONGTEXT, false )
+ add_module_list("sub-source", "sub source", NULL,
+ SUB_SOURCE_TEXT, SUB_SOURCE_LONGTEXT)
+ add_module_list("sub-filter", "sub filter", NULL,
+ SUB_FILTER_TEXT, SUB_FILTER_LONGTEXT)
/* Input options */
set_category( CAT_INPUT )
@@ -1945,8 +1945,8 @@ vlc_module_begin ()
add_obsolete_bool( "prefer-system-codecs" )
set_subcategory( SUBCAT_INPUT_STREAM_FILTER )
- add_module_list( "stream-filter", "stream_filter", NULL,
- STREAM_FILTER_TEXT, STREAM_FILTER_LONGTEXT, false )
+ add_module_list("stream-filter", "stream_filter", NULL,
+ STREAM_FILTER_TEXT, STREAM_FILTER_LONGTEXT)
add_string( "demux-filter", NULL, DEMUX_FILTER_TEXT, DEMUX_FILTER_LONGTEXT, true )
More information about the vlc-commits
mailing list