mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
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:
parent
6adfb120ab
commit
3a1912f88c
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue