[vlc-devel] [PATCH 2/2] libvlc-module: populate the alignment values from VOUT_ALIGN_xxx

Steve Lhomme robux4 at ycbcr.xyz
Thu Apr 26 11:43:32 CEST 2018


---
 src/libvlc-module.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 7d45407f00..285fa22341 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -287,7 +287,12 @@ static const char *const ppsz_replay_gain_mode_text[] = {
     "Enforce the alignment of the video in its window. By default (0) it " \
     "will be centered (0=center, 1=left, 2=right, 4=top, 8=bottom, you can " \
     "also use combinations of these values, like 6=4+2 meaning top-right).")
-static const int pi_align_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 };
+static const int pi_align_values[] = { 0, VOUT_ALIGN_LEFT, VOUT_ALIGN_RIGHT,
+                                       VOUT_ALIGN_TOP, VOUT_ALIGN_BOTTOM,
+                                       VOUT_ALIGN_TOP|VOUT_ALIGN_LEFT,
+                                       VOUT_ALIGN_TOP|VOUT_ALIGN_RIGHT,
+                                       VOUT_ALIGN_BOTTOM|VOUT_ALIGN_LEFT,
+                                       VOUT_ALIGN_BOTTOM|VOUT_ALIGN_RIGHT };
 static const char *const ppsz_align_descriptions[] =
 { N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"),
   N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") };
-- 
2.16.2



More information about the vlc-devel mailing list