[vlc-commits] codec: webvtt: correct storage of cue position

Francois Cartegnie git at videolan.org
Fri Jan 19 18:45:21 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jan 18 12:10:43 2018 +0100| [2dc9b2919696b186ccaedfae38593f665b1b6d8a] | committer: Francois Cartegnie

codec: webvtt: correct storage of cue position

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

 modules/codec/webvtt/subsvtt.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/codec/webvtt/subsvtt.c b/modules/codec/webvtt/subsvtt.c
index cc5d7a99f5..aa4453bb15 100644
--- a/modules/codec/webvtt/subsvtt.c
+++ b/modules/codec/webvtt/subsvtt.c
@@ -232,13 +232,13 @@ static void webvtt_cue_settings_ParseTuple( webvtt_cue_settings_t *p_settings,
         if( psz_align++ )
         {
             if( !strcmp( psz_align, "line-left" ) )
-                p_settings->linealign = WEBVTT_ALIGN_LEFT;
+                p_settings->positionalign = WEBVTT_ALIGN_LEFT;
             else if( !strcmp( psz_align, "line-right" ) )
-                p_settings->linealign = WEBVTT_ALIGN_RIGHT;
+                p_settings->positionalign = WEBVTT_ALIGN_RIGHT;
             else if( !strcmp( psz_align, "center" ) )
-                p_settings->linealign = WEBVTT_ALIGN_CENTER;
+                p_settings->positionalign = WEBVTT_ALIGN_CENTER;
             else
-                p_settings->linealign = WEBVTT_ALIGN_AUTO;
+                p_settings->positionalign = WEBVTT_ALIGN_AUTO;
         }
     }
     else if( !strcmp( psz_key, "size" ) )



More information about the vlc-commits mailing list