[vlc-commits] modules: webvtt: add missing nodes parenting
Francois Cartegnie
git at videolan.org
Mon Oct 30 13:42:34 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Oct 30 09:13:59 2017 +0100| [f2335294f410bc68a20a17015569ff599c4174f7] | committer: Francois Cartegnie
modules: webvtt: add missing nodes parenting
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f2335294f410bc68a20a17015569ff599c4174f7
---
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 bdc88853c4..92d7884405 100644
--- a/modules/codec/webvtt/subsvtt.c
+++ b/modules/codec/webvtt/subsvtt.c
@@ -650,6 +650,7 @@ static void webvtt_region_AddCue( webvtt_region_t *p_region,
while( *pp_add )
pp_add = &((*pp_add)->p_next);
*pp_add = (webvtt_dom_node_t *)p_cue;
+ p_cue->p_parent = (webvtt_dom_node_t *)p_region;
for( ;; )
{
@@ -815,6 +816,8 @@ static void ProcessCue( decoder_t *p_dec, const char *psz, webvtt_dom_cue_t *p_c
if( p_cue->p_child )
return;
p_cue->p_child = CreateDomNodes( psz, &p_cue->i_lines );
+ for( webvtt_dom_node_t *p_child = p_cue->p_child; p_child; p_child = p_child->p_next )
+ p_child->p_parent = (webvtt_dom_node_t *)p_cue;
#ifdef SUBSVTT_DEBUG
webvtt_domnode_Debug( (webvtt_dom_node_t *) p_cue, 0 );
#endif
More information about the vlc-commits
mailing list