summaryrefslogtreecommitdiff
path: root/gst/mxf
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-12-08 18:23:02 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-12-08 18:23:02 +0200
commit41e500356ff19500a3cc81573449f8619e5a87ff (patch)
tree8cb9e803747a4bf401ad605400f4ff2edce2e949 /gst/mxf
parenta02708f924261e349a254b0e8293b20a4ba4b1b6 (diff)
downloadgstreamer-plugins-bad-41e500356ff19500a3cc81573449f8619e5a87ff.tar.gz
mxfmux: Handle aggregation with NULL buffers without crashing
Diffstat (limited to 'gst/mxf')
-rw-r--r--gst/mxf/mxfmux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/mxf/mxfmux.c b/gst/mxf/mxfmux.c
index d1f494528..cc73f31e9 100644
--- a/gst/mxf/mxfmux.c
+++ b/gst/mxf/mxfmux.c
@@ -1136,8 +1136,8 @@ gst_mxf_mux_handle_buffer (GstMXFMux * mux, GstMXFMuxPad * pad)
guint8 slen, ber[9];
gboolean flush = gst_aggregator_pad_is_eos (GST_AGGREGATOR_PAD (pad))
&& !pad->have_complete_edit_unit && buf == NULL;
- gboolean is_keyframe =
- !GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_DELTA_UNIT);
+ gboolean is_keyframe = buf ?
+ !GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_DELTA_UNIT) : TRUE;
if (pad->have_complete_edit_unit) {
GST_DEBUG_OBJECT (pad,