[vlc-devel] [PATCH 2/7] Add services-advertisement configuration option

Roland Bewick roland.bewick at gmail.com
Wed Jul 24 17:43:45 CEST 2019


---
 src/libvlc-module.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index f5de78bcae..97075cbab6 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1232,6 +1232,11 @@ static const char *const psz_recursive_list_text[] = {
      "Specifies the services discovery modules to preload, separated by " \
      "colons. Typical value is \"sap\"." )
 
+#define SA_TEXT N_( "Services advertisement modules")
+#define SA_LONGTEXT N_( \
+     "Specifies the services advertisement modules to preload, separated by " \
+     "colons. Typical value is \"mdns\"." )
+
 #define RANDOM_TEXT N_("Play files randomly forever")
 #define RANDOM_LONGTEXT N_( \
     "VLC will randomly play files in the playlist until interrupted.")
@@ -2125,6 +2130,7 @@ vlc_module_begin ()
     add_category_hint(N_("Miscellaneous"), MISC_CAT_LONGTEXT)
     add_module("vod-server", "vod server", NULL,
                VOD_SERVER_TEXT, VOD_SERVER_LONGTEXT)
+    add_string( "services-advertisement", "", SA_TEXT, SA_LONGTEXT, true )
 
     set_section( N_("Plugins" ), NULL )
 #ifdef HAVE_DYNAMIC_PLUGINS
-- 
2.11.0



More information about the vlc-devel mailing list