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

Steve Lhomme git at videolan.org
Thu Jan 14 13:52:51 UTC 2021


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jan 11 10:07:47 2021 +0100| [a8b103fd606405207078b640db9d9d60661074d5] | committer: Steve Lhomme

libvlc-module: make "encoder" list option obsolete

It's not used anywhere in the code.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a8b103fd606405207078b640db9d9d60661074d5
---

 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 5f3c93c53c..16d96d53b5 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 )



More information about the vlc-commits mailing list