Commit beef6ffc authored by François Cartegnie's avatar François Cartegnie 🤞

codec: webvtt: fix reparenting on closing tag

(cherry picked from commit 2e0012ed)
parent 90ef80cc
......@@ -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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment