[vlc-commits] codec: webvtt: missing region clear
Francois Cartegnie
git at videolan.org
Fri Nov 3 17:49:08 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Nov 2 14:06:01 2017 +0100| [95fd77d1439ae044cba0232c34840674916eb8d8] | committer: Francois Cartegnie
codec: webvtt: missing region clear
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=95fd77d1439ae044cba0232c34840674916eb8d8
---
modules/codec/webvtt/subsvtt.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/codec/webvtt/subsvtt.c b/modules/codec/webvtt/subsvtt.c
index 3cf4e73acd..e0f9712008 100644
--- a/modules/codec/webvtt/subsvtt.c
+++ b/modules/codec/webvtt/subsvtt.c
@@ -671,6 +671,11 @@ static void ClearCuesByTime( webvtt_dom_node_t **pp_next, mtime_t i_time )
continue;
}
}
+ else if( p_node->type == NODE_REGION )
+ {
+ webvtt_region_t *p_region = (webvtt_region_t *) p_node;
+ ClearCuesByTime( &p_region->p_child, i_time );
+ }
pp_next = &p_node->p_next;
}
}
More information about the vlc-commits
mailing list