[vlc-devel] [PATCH 1/3] core: list the decoder device available for the dec-dev option
Steve Lhomme
robux4 at ycbcr.xyz
Fri Oct 25 13:01:56 CEST 2019
Similar to what was done with avcodec-hw
---
src/libvlc-module.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index d3da4e5fb82..9dc892e82bf 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -968,6 +968,7 @@ static const char *const ppsz_prefres[] = {
"priority.")
#define DEC_DEV_TEXT N_("Preferred decoder hardware device")
+#define DEC_DEV_LONGTEXT N_("This allows hardware decoding when available.")
/*****************************************************************************
* Sout
@@ -2037,7 +2038,7 @@ vlc_module_begin ()
CODEC_LONGTEXT, true )
add_string( "encoder", NULL, ENCODER_TEXT,
ENCODER_LONGTEXT, true )
- add_string( "dec-dev", NULL, DEC_DEV_TEXT, NULL, true )
+ add_module("dec-dev", "decoder device", "any", DEC_DEV_TEXT, DEC_DEV_LONGTEXT)
set_subcategory( SUBCAT_INPUT_ACCESS )
add_category_hint(N_("Input"), INPUT_CAT_LONGTEXT)
--
2.17.1
More information about the vlc-devel
mailing list