[vlc-commits] codec: subs: apply default styles to regions on update

Francois Cartegnie git at videolan.org
Thu Sep 10 14:03:49 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Sep 10 14:03:01 2015 +0200| [e23bf58cf6d099f9c64176b91ea0636ddd275dc5] | committer: Francois Cartegnie

codec: subs: apply default styles to regions on update

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

 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 160cb2c..ed34d58 100644
--- a/modules/codec/substext.h
+++ b/modules/codec/substext.h
@@ -114,7 +114,7 @@ static void SubpictureTextUpdate(subpicture_t *subpic,
     }
 
     /* Add missing default style, if any, to all segments */
-    for ( text_segment_t* p_segment = sys->p_segments; p_segment; p_segment = p_segment->p_next )
+    for ( text_segment_t* p_segment = r->p_text; p_segment; p_segment = p_segment->p_next )
     {
         /* Add decoder defaults */
         if( p_segment->style )



More information about the vlc-commits mailing list