summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-03-15 13:21:38 +0200
committerSebastian Dröge <sebastian@centricular.com>2017-03-15 13:27:23 +0200
commitb84f530a9ac7d0f68c93a16515ab879fb0509365 (patch)
treef18adbc5e036659753ae5c5ff16527d256609f48
parent644192aafe74f2f2e0465fed3f0e05f93abf91ba (diff)
downloadgstreamer-plugins-bad-b84f530a9ac7d0f68c93a16515ab879fb0509365.tar.gz
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.
-rw-r--r--ext/dash/gstisoff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/dash/gstisoff.c b/ext/dash/gstisoff.c
index af1f63a26..f305b7c4f 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