[vlc-commits] core: list the decoder device available for the dec-dev option
Steve Lhomme
git at videolan.org
Mon Oct 28 09:41:57 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jul 8 12:10:57 2019 +0200| [e65ec45d77aefac42c7d540b76dc6e43aee857c5] | committer: Steve Lhomme
core: list the decoder device available for the dec-dev option
Similar to what was done with avcodec-hw
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e65ec45d77aefac42c7d540b76dc6e43aee857c5
---
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 d3da4e5fb8..9dc892e82b 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)
More information about the vlc-commits
mailing list