[vlc-devel] [PATCH] libvlc-module: make "encoder" list option obsolete

Steve Lhomme robux4 at ycbcr.xyz
Mon Jan 11 15:24:57 UTC 2021


It's not used anywhere in the code.
---
 src/libvlc-module.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 5f3c93c53cb..16d96d53b5c 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -958,11 +958,6 @@ static const char *const ppsz_prefres[] = {
     "VLC will fallback automatically to software decoders in case of " \
     "hardware decoder failure." )
 
-#define ENCODER_TEXT N_("Preferred encoders list")
-#define ENCODER_LONGTEXT N_( \
-    "This allows you to select a list of encoders that VLC will use in " \
-    "priority.")
-
 #define DEC_DEV_TEXT N_("Preferred decoder hardware device")
 #define DEC_DEV_LONGTEXT N_("This allows hardware decoding when available.")
 
@@ -2004,8 +1999,7 @@ vlc_module_begin ()
     add_string( "codec", NULL, CODEC_TEXT,
                 CODEC_LONGTEXT, true )
     add_bool( "hw-dec", true, HW_DEC_TEXT, HW_DEC_LONGTEXT, true )
-    add_string( "encoder",  NULL, ENCODER_TEXT,
-                ENCODER_LONGTEXT, true )
+    add_obsolete_string( "encoder" ) /* since 4.0.0 */
     add_module("dec-dev", "decoder device", "any", DEC_DEV_TEXT, DEC_DEV_LONGTEXT)
 
     set_subcategory( SUBCAT_INPUT_ACCESS )
-- 
2.29.2



More information about the vlc-devel mailing list