[vlc-devel] [PATCH 3/3] demux/adaptive: add longtext to adaptive-{width, height} option

Filip Roséen filip at videolabs.io
Wed Jul 13 22:02:47 CEST 2016


---
 modules/demux/adaptive/adaptive.cpp | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/modules/demux/adaptive/adaptive.cpp b/modules/demux/adaptive/adaptive.cpp
index 01a7cc3..79db857 100644
--- a/modules/demux/adaptive/adaptive.cpp
+++ b/modules/demux/adaptive/adaptive.cpp
@@ -63,9 +63,15 @@ using namespace smooth::playlist;
 static int  Open    (vlc_object_t *);
 static void Close   (vlc_object_t *);
 
+#define ADAPT_DIMENSIONAL_LONGTEXT(dimension) N_( \
+  "Find an appropriate stream with this " dimension ", " \
+  "a value of 0 means no preference." )
+
 #define ADAPT_WIDTH_TEXT N_("Preferred Width")
+#define ADAPT_WIDTH_LONGTEXT ADAPT_DIMENSIONAL_LONGTEXT( "width" )
 
 #define ADAPT_HEIGHT_TEXT N_("Preferred Height")
+#define ADAPT_HEIGHT_LONGTEXT ADAPT_DIMENSIONAL_LONGTEXT( "height" )
 
 #define ADAPT_BW_TEXT N_("Fixed Bandwidth in KiB/s")
 #define ADAPT_BW_LONGTEXT N_("Preferred bandwidth for non adaptive streams")
@@ -94,8 +100,8 @@ vlc_module_begin ()
         add_integer( "adaptive-logic",  AbstractAdaptationLogic::Default,
                                           ADAPT_LOGIC_TEXT, NULL, false )
             change_integer_list( pi_logics, ppsz_logics )
-        add_integer( "adaptive-width",  0, ADAPT_WIDTH_TEXT,  ADAPT_WIDTH_TEXT,  true )
-        add_integer( "adaptive-height", 0, ADAPT_HEIGHT_TEXT, ADAPT_HEIGHT_TEXT, true )
+        add_integer( "adaptive-width",  0, ADAPT_WIDTH_TEXT,  ADAPT_WIDTH_LONGTEXT,  true )
+        add_integer( "adaptive-height", 0, ADAPT_HEIGHT_TEXT, ADAPT_HEIGHT_LONGTEXT, true )
         add_integer( "adaptive-bw",     250, ADAPT_BW_TEXT,     ADAPT_BW_LONGTEXT,     false )
         add_bool   ( "adaptive-use-access", false, ADAPT_ACCESS_TEXT, ADAPT_ACCESS_LONGTEXT, true );
         set_callbacks( Open, Close )
-- 
2.9.0



More information about the vlc-devel mailing list