mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
mxfdemux: guard against NULL material track
Just to be on the safe side.
This commit is contained in:
parent
45b8225a02
commit
39dc1f0ebb
1 changed files with 3 additions and 2 deletions
|
@ -3394,12 +3394,13 @@ gst_mxf_demux_seek_pull (GstMXFDemux * demux, GstEvent * event)
|
||||||
|
|
||||||
/* Do the actual seeking */
|
/* Do the actual seeking */
|
||||||
for (i = 0; i < demux->src->len; i++) {
|
for (i = 0; i < demux->src->len; i++) {
|
||||||
MXFMetadataTrackType track_type;
|
MXFMetadataTrackType track_type = MXF_METADATA_TRACK_UNKNOWN;
|
||||||
GstMXFDemuxPad *p = g_ptr_array_index (demux->src, i);
|
GstMXFDemuxPad *p = g_ptr_array_index (demux->src, i);
|
||||||
gint64 position;
|
gint64 position;
|
||||||
guint64 off;
|
guint64 off;
|
||||||
|
|
||||||
track_type = p->material_track->parent.type;
|
if (p->material_track != NULL)
|
||||||
|
track_type = p->material_track->parent.type;
|
||||||
|
|
||||||
/* Reset EOS flag on all pads */
|
/* Reset EOS flag on all pads */
|
||||||
p->eos = FALSE;
|
p->eos = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue