[vlc-devel] [PATCHv3 03/12] libvlc: add renderer module list option
Thomas Guillem
thomas at gllm.fr
Tue Mar 29 15:06:34 CEST 2016
---
src/libvlc-module.c | 8 ++++++++
src/playlist/engine.c | 1 +
2 files changed, 9 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 )
diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index 6000a37..5cdfd4c 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -450,6 +450,7 @@ static void VariablesInit( playlist_t *p_playlist )
var_Create( p_playlist, "playlist-item-append", VLC_VAR_ADDRESS );
var_Create( p_playlist, "input-current", VLC_VAR_ADDRESS );
+ var_Create( p_playlist, "renderer", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
/* Variables to control playback */
var_Create( p_playlist, "playlist-autostart", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
--
2.8.0.rc3
More information about the vlc-devel
mailing list