From 3a1912f88c70877c71426170f5f7919c34b18c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 11 Jul 2017 20:53:22 +0300 Subject: [PATCH] mxfdemux: Initialize index table entries completely in all cases When seeking backwards into a previously unseen location, we wouldn't fully initialize them and playback would fail later. --- gst/mxf/mxfdemux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c index 24fcf11e8e..f2a6f93fc5 100644 --- a/gst/mxf/mxfdemux.c +++ b/gst/mxf/mxfdemux.c @@ -1791,6 +1791,9 @@ gst_mxf_demux_handle_generic_container_essence_element (GstMXFDemux * demux, &g_array_index (etrack->offsets, GstMXFDemuxIndex, etrack->position); index->offset = demux->offset - demux->run_in; + index->initialized = TRUE; + index->pts = pts; + index->dts = dts; index->keyframe = keyframe; } else if (etrack->position < G_MAXINT) { GstMXFDemuxIndex index;