[vlc-commits] libvlc-module: populate the alignment values from VOUT_ALIGN_xxx
    Steve Lhomme 
    git at videolan.org
       
    Fri Apr 27 07:59:27 CEST 2018
    
    
  
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Apr 26 11:38:26 2018 +0200| [ef098d538da442ae1ca66e2d5a0b2e86e87977da] | committer: Steve Lhomme
libvlc-module: populate the alignment values from VOUT_ALIGN_xxx
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ef098d538da442ae1ca66e2d5a0b2e86e87977da
---
 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") };
    
    
More information about the vlc-commits
mailing list