diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2014-04-08 16:53:41 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-04-08 16:53:41 +0100 |
commit | 39dc1f0ebb95a027a297a5fdf5e58c04e79a592c (patch) | |
tree | 444ce0c98b98ce31aca0ff639602a752dbd515fa /gst | |
parent | 45b8225a0214d8f2a9072ce1ff6006d6aeb6a289 (diff) | |
download | gstreamer-plugins-bad-39dc1f0ebb95a027a297a5fdf5e58c04e79a592c.tar.gz |
mxfdemux: guard against NULL material track
Just to be on the safe side.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mxf/mxfdemux.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c index d8ef2ce05..1237ac222 100644 --- a/gst/mxf/mxfdemux.c +++ b/gst/mxf/mxfdemux.c @@ -3394,12 +3394,13 @@ gst_mxf_demux_seek_pull (GstMXFDemux * demux, GstEvent * event) /* Do the actual seeking */ 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); gint64 position; 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 */ p->eos = FALSE; |