[vlc-commits] Fix positioning so that the EIA-608 field is properly centered

Devin Heitmueller git at videolan.org
Mon Dec 31 14:00:03 CET 2012


vlc | branch: master | Devin Heitmueller <dheitmueller at kernellabs.com> | Thu Dec 27 01:08:15 2012 -0500| [6dc52f6e388a55c31dd3ffeb002f064b63a47130] | committer: Rafaël Carré

Fix positioning so that the EIA-608 field is properly centered

Because the subpicture field contains all the lines, we need to change the
layout.

Signed-off-by: Rafaël Carré <funman at videolan.org>

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

 modules/codec/cc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/cc.c b/modules/codec/cc.c
index b3fc1cf..8e5b767 100644
--- a/modules/codec/cc.c
+++ b/modules/codec/cc.c
@@ -327,7 +327,7 @@ static subpicture_t *Subtitle( decoder_t *p_dec, char *psz_subtitle, char *psz_h
 
     subpicture_updater_sys_t *p_spu_sys = p_spu->updater.p_sys;
 
-    p_spu_sys->align = SUBPICTURE_ALIGN_BOTTOM;
+    p_spu_sys->align = SUBPICTURE_ALIGN_TOP | SUBPICTURE_ALIGN_LEFT;
     p_spu_sys->text  = psz_subtitle;
     p_spu_sys->html  = psz_html;
 



More information about the vlc-commits mailing list