[vlc-commits] codec: webvtt: fix node reparenting on closing tags (fix #22887)
Francois Cartegnie
git at videolan.org
Tue Oct 8 19:29:49 CEST 2019
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Sep 30 16:47:25 2019 +0200| [385ae87ca66342488f8e8a4defbefd98317b5b34] | committer: Francois Cartegnie
codec: webvtt: fix node reparenting on closing tags (fix #22887)
(cherry picked from commit 055a1be033be4ecdecf35b91bdc717bc75ac01cd)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=385ae87ca66342488f8e8a4defbefd98317b5b34
---
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 27d1d67350..d036626756 100644
--- a/modules/codec/webvtt/subsvtt.c
+++ b/modules/codec/webvtt/subsvtt.c
@@ -1261,7 +1261,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