From 41e500356ff19500a3cc81573449f8619e5a87ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 8 Dec 2015 18:23:02 +0200 Subject: [PATCH] mxfmux: Handle aggregation with NULL buffers without crashing --- gst/mxf/mxfmux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/mxf/mxfmux.c b/gst/mxf/mxfmux.c index d1f4945..cc73f31 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, -- 2.7.4