[vlc-devel] [RFC PATCHv2 2/6] libvlc: add renderer module list option

Thomas Guillem thomas at gllm.fr
Wed Mar 2 15:58:20 CET 2016


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

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index c3e4a01..1e5e2ab 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -80,6 +80,10 @@ static const char *const ppsz_snap_formats[] =
 #define CONTROL_LONGTEXT N_( \
     "You can select control interfaces for VLC.")
 
+#define RENDERER_TEXT N_("Renderer modules")
+#define RENDERER_LONGTEXT N_( \
+    "You can select a device to render audio/video from VLC.")
+
 #define VERBOSE_TEXT N_("Verbosity (0,1,2)")
 #define VERBOSE_LONGTEXT N_( \
     "This is the verbosity level (0=only errors and " \
@@ -2076,6 +2080,10 @@ vlc_module_begin ()
     add_module_list_cat( "control", SUBCAT_INTERFACE_CONTROL, NULL,
                          CONTROL_TEXT, CONTROL_LONGTEXT, false )
 
+    set_subcategory( SUBCAT_ADVANCED_RENDERER )
+    add_module_list_cat( "renderer", SUBCAT_ADVANCED_RENDERER, NULL,
+                         RENDERER_TEXT, RENDERER_LONGTEXT, true )
+
 /* Hotkey options*/
     set_subcategory( SUBCAT_INTERFACE_HOTKEYS )
     add_category_hint( N_("Hot keys"), HOTKEY_CAT_LONGTEXT , false )
-- 
2.7.0



More information about the vlc-devel mailing list