[vlc-commits] plugins: add missing short text to options

Lyndon Brown git at videolan.org
Thu Sep 24 20:39:46 CEST 2020


vlc | branch: master | Lyndon Brown <jnqnfe at gmail.com> | Thu Sep  3 03:05:17 2020 +0100| [0de820337d190cd41e101703fb7a023a6d1e071b] | committer: Rémi Denis-Courmont

plugins: add missing short text to options

every option should have a short text label for use in help output and
preference interfaces.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/audio_filter/libebur128.c | 2 +-
 modules/demux/mock.c              | 2 +-
 modules/hw/d3d11/d3d11_filters.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/audio_filter/libebur128.c b/modules/audio_filter/libebur128.c
index dc7667753c..2a1623741f 100644
--- a/modules/audio_filter/libebur128.c
+++ b/modules/audio_filter/libebur128.c
@@ -300,7 +300,7 @@ vlc_module_begin()
     set_description("EBU R128 standard for loudness normalisation")
     set_category(CAT_AUDIO)
     set_subcategory(SUBCAT_AUDIO_AFILTER)
-    add_integer_with_range(CFG_PREFIX "mode", 0, 0, 4, NULL, NULL, false)
+    add_integer_with_range(CFG_PREFIX "mode", 0, 0, 4, N_("Mode"), NULL, false)
     set_capability("audio meter", 0)
     set_callbacks(Open, Close)
 vlc_module_end()
diff --git a/modules/demux/mock.c b/modules/demux/mock.c
index 3e40de176d..3ab53b3ef2 100644
--- a/modules/demux/mock.c
+++ b/modules/demux/mock.c
@@ -183,7 +183,7 @@ var_Read_float(const char *psz)
     READ(group_name##_##var_name, group_name.var_name, getter)
 
 #define DECLARE_MODULE_OPTIONS(var_name, type, module_header_type, getter, default_value) \
-    module_header_type("mock-"#var_name, default_value, NULL, NULL, true) \
+    module_header_type("mock-"#var_name, default_value, #var_name, NULL, true) \
     change_volatile() \
     change_safe()
 #define DECLARE_MODULE_SUBOPTIONS(a,b,c,d,e,f) \
diff --git a/modules/hw/d3d11/d3d11_filters.c b/modules/hw/d3d11/d3d11_filters.c
index c5a1c680c1..868ce7ac31 100644
--- a/modules/hw/d3d11/d3d11_filters.c
+++ b/modules/hw/d3d11/d3d11_filters.c
@@ -610,7 +610,7 @@ vlc_module_begin()
     set_callback_dec_device( D3D11OpenDecoderDeviceAny, 8 )
 #if VLC_WINSTORE_APP
     /* LEGACY, the d3dcontext and swapchain were given by the host app */
-    add_integer("winrt-d3dcontext",    0x0, NULL, NULL, true) /* ID3D11DeviceContext* */
+    add_integer("winrt-d3dcontext", 0x0, N_("Context"), NULL, true) /* ID3D11DeviceContext* */
 #endif /* VLC_WINSTORE_APP */
     add_shortcut ("d3d11")
 



More information about the vlc-commits mailing list