From: Sebastian Dröge Date: Wed, 15 Mar 2017 11:21:38 +0000 (+0200) Subject: dashdemux: When clearing the sidx parser, reset all state X-Git-Tag: 1.12.2~204 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b84f530a9ac7d0f68c93a16515ab879fb0509365;p=platform%2Fupstream%2Fgst-plugins-bad.git dashdemux: When clearing the sidx parser, reset all state And especially don't keep entry count and index around, we have no entries anymore after clearing. --- diff --git a/ext/dash/gstisoff.c b/ext/dash/gstisoff.c index af1f63a..f305b7c 100644 --- a/ext/dash/gstisoff.c +++ b/ext/dash/gstisoff.c @@ -363,7 +363,9 @@ void gst_isoff_sidx_parser_clear (GstSidxParser * parser) { g_free (parser->sidx.entries); - parser->sidx.entries = NULL; + memset (parser, 0, sizeof (*parser)); + + gst_isoff_sidx_parser_init (parser); } static void