[vlc-commits] codec: webvtt: fix reparenting on closing tag

Francois Cartegnie git at videolan.org
Tue Dec 26 23:43:58 CET 2017


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 26 18:59:44 2017 +0100| [beef6ffc2df2f90725db70cd9a3dd37f13cf44da] | committer: Francois Cartegnie

codec: webvtt: fix reparenting on closing tag

(cherry picked from commit 2e0012ede7e254e59d172d907f909d815ab69a2e)

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

 modules/codec/webvtt/subsvtt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/webvtt/subsvtt.c b/modules/codec/webvtt/subsvtt.c
index 8b6368d40f..cc5d7a99f5 100644
--- a/modules/codec/webvtt/subsvtt.c
+++ b/modules/codec/webvtt/subsvtt.c
@@ -1160,7 +1160,7 @@ static webvtt_dom_node_t * CreateDomNodes( const char *psz_text, unsigned *pi_li
 
                     /* Close at matched parent node level due to unclosed tags
                      * like <b><v stuff>foo</b> */
-                    p_parent = webvtt_domnode_getParentByTag( p_parent->p_parent, psz_tagname );
+                    p_parent = webvtt_domnode_getParentByTag( p_parent, psz_tagname );
                     if( p_parent ) /* continue as parent next */
                         pp_append = &p_parent->p_next;
                     else /* back as top node */



More information about the vlc-commits mailing list