[vlc-commits] text_style: missing text_style when copying segments

Francois Cartegnie git at videolan.org
Thu Sep 3 15:47:53 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Sep  3 15:38:59 2015 +0200| [b102287fab2dcd545ff86d9c20196db069af3e39] | committer: Francois Cartegnie

text_style: missing text_style when copying segments

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

 src/misc/text_style.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/misc/text_style.c b/src/misc/text_style.c
index 37a6177..eddddfe 100644
--- a/src/misc/text_style.c
+++ b/src/misc/text_style.c
@@ -208,6 +208,8 @@ text_segment_t *text_segment_Copy( text_segment_t *p_src )
 
     while( p_src && p_src->p_next ) {
         text_segment_t *p_next = text_segment_New( p_src->psz_text );
+        if( p_next )
+            p_next->style = text_style_Duplicate( p_src->style );
         p_src = p_src->p_next;
 
         if( p_dst == NULL )



More information about the vlc-commits mailing list