vlc | branch: master | Francois Cartegnie <[email protected]> | Wed Aug  5 
21:58:47 2015 +0200| [6d442985ab9d532065857ab0ddbf1ff22cda52b9] | committer: 
Francois Cartegnie

codec: cc: add monospaced style to segments

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

 modules/codec/cc.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/cc.c b/modules/codec/cc.c
index 14b2056..fa4bbe1 100644
--- a/modules/codec/cc.c
+++ b/modules/codec/cc.c
@@ -941,6 +941,8 @@ static text_segment_t * Eia608TextLine( struct 
eia608_screen *screen, int i_row,
         text_segment_Delete(p_segment);
         return NULL;
     }
+    /* Ensure we get a monospaced font (required for accurate positioning */
+    p_segment->style->b_monospaced = true;
 
     /* Search the start */
     i_start = 0;
@@ -981,6 +983,7 @@ static text_segment_t * Eia608TextLine( struct 
eia608_screen *screen, int i_row,
                 text_segment_Delete(p_segment);
                 return p_segments_head;
             }
+            p_segment->style->b_monospaced = true;
 
             /* start segment with new style */
             if(font & EIA608_FONT_ITALICS)

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to