[vlc-devel] [PATCH 03/11] Fix positioning so that the EIA-608 field is properly centered

Devin Heitmueller dheitmueller at kernellabs.com
Thu Dec 27 07:08:15 CET 2012


Because the subpicture field contains all the lines, we need to change the
layout.
---
 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 86ec51e..fc047e6 100644
--- a/modules/codec/cc.c
+++ b/modules/codec/cc.c
@@ -333,7 +333,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;
 
-- 
1.7.9.5




More information about the vlc-devel mailing list