[vlc-commits] codec: cc: missing new region linking (cid #1398574)
Francois Cartegnie
git at videolan.org
Fri Jan 13 13:42:39 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jan 13 13:15:06 2017 +0100| [d00f3947d84924112d051336cdafdf6358611c45] | committer: Francois Cartegnie
codec: cc: missing new region linking (cid #1398574)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d00f3947d84924112d051336cdafdf6358611c45
---
modules/codec/cc.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/codec/cc.c b/modules/codec/cc.c
index 68a370f..567a88e 100644
--- a/modules/codec/cc.c
+++ b/modules/codec/cc.c
@@ -1144,12 +1144,15 @@ static void Eia608FillUpdaterRegions( subpicture_updater_sys_t *p_updater, eia60
{
if( b_newregion )
{
- p_region = SubpictureUpdaterSysRegionNew();
- if( !p_region )
+ subpicture_updater_sys_region_t *p_newregion;
+ p_newregion = SubpictureUpdaterSysRegionNew();
+ if( !p_newregion )
{
text_segment_ChainDelete( p_segments );
return;
}
+ SubpictureUpdaterSysRegionAdd( p_region, p_newregion );
+ p_region = p_newregion;
pp_last = &p_region->p_segments;
b_newregion = false;
}
More information about the vlc-commits
mailing list