[vlc-commits] subs: copy text segment to new region on update

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:02 2015 +0200| [2fdb67da3e28a837f673245682d1f83955649d0f] | committer: Francois Cartegnie

subs: copy text segment to new region on update

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

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

diff --git a/modules/codec/substext.h b/modules/codec/substext.h
index 21346cc..e00e26d 100644
--- a/modules/codec/substext.h
+++ b/modules/codec/substext.h
@@ -64,7 +64,7 @@ static void SubpictureTextUpdate(subpicture_t *subpic,
     if (!r)
         return;
 
-    r->p_text = sys->p_segments;
+    r->p_text = text_segment_Copy( sys->p_segments );
     r->i_align  = sys->align;
     r->b_noregionbg = sys->noregionbg;
     r->b_gridmode = sys->gridmode;



More information about the vlc-commits mailing list