From b84f530a9ac7d0f68c93a16515ab879fb0509365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 15 Mar 2017 13:21:38 +0200 Subject: [PATCH] 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. --- ext/dash/gstisoff.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/dash/gstisoff.c b/ext/dash/gstisoff.c index af1f63a26e..f305b7c4f2 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