[vlc-commits] codec: webvtt: fix node reparenting on closing tags (fix #22887)
Francois Cartegnie
git at videolan.org
Mon Sep 30 18:19:29 CEST 2019
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Sep 30 16:47:25 2019 +0200| [055a1be033be4ecdecf35b91bdc717bc75ac01cd] | committer: Francois Cartegnie
codec: webvtt: fix node reparenting on closing tags (fix #22887)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=055a1be033be4ecdecf35b91bdc717bc75ac01cd
---
modules/codec/webvtt/subsvtt.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/codec/webvtt/subsvtt.c b/modules/codec/webvtt/subsvtt.c
index b432918d3d..ab01d40907 100644
--- a/modules/codec/webvtt/subsvtt.c
+++ b/modules/codec/webvtt/subsvtt.c
@@ -1262,7 +1262,10 @@ static webvtt_dom_node_t * CreateDomNodes( const char *psz_text, unsigned *pi_li
* like <b><v stuff>foo</b> */
p_parent = webvtt_domnode_getParentByTag( p_parent, psz_tagname );
if( p_parent ) /* continue as parent next */
+ {
pp_append = &p_parent->p_next;
+ p_parent = p_parent->p_parent;
+ }
else /* back as top node */
pp_append = &p_head->p_next;
while( *pp_append )
More information about the vlc-commits
mailing list