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.
This commit is contained in:
Sebastian Dröge 2017-07-11 20:53:22 +03:00
parent 6adfb120ab
commit 3a1912f88c

View file

@ -1791,6 +1791,9 @@ gst_mxf_demux_handle_generic_container_essence_element (GstMXFDemux * demux,
&g_array_index (etrack->offsets, GstMXFDemuxIndex, etrack->position); &g_array_index (etrack->offsets, GstMXFDemuxIndex, etrack->position);
index->offset = demux->offset - demux->run_in; index->offset = demux->offset - demux->run_in;
index->initialized = TRUE;
index->pts = pts;
index->dts = dts;
index->keyframe = keyframe; index->keyframe = keyframe;
} else if (etrack->position < G_MAXINT) { } else if (etrack->position < G_MAXINT) {
GstMXFDemuxIndex index; GstMXFDemuxIndex index;