mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +00:00
mxfmux: Handle aggregation with NULL buffers without crashing
This commit is contained in:
parent
a02708f924
commit
41e500356f
1 changed files with 2 additions and 2 deletions
|
@ -1136,8 +1136,8 @@ gst_mxf_mux_handle_buffer (GstMXFMux * mux, GstMXFMuxPad * pad)
|
||||||
guint8 slen, ber[9];
|
guint8 slen, ber[9];
|
||||||
gboolean flush = gst_aggregator_pad_is_eos (GST_AGGREGATOR_PAD (pad))
|
gboolean flush = gst_aggregator_pad_is_eos (GST_AGGREGATOR_PAD (pad))
|
||||||
&& !pad->have_complete_edit_unit && buf == NULL;
|
&& !pad->have_complete_edit_unit && buf == NULL;
|
||||||
gboolean is_keyframe =
|
gboolean is_keyframe = buf ?
|
||||||
!GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_DELTA_UNIT);
|
!GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_DELTA_UNIT) : TRUE;
|
||||||
|
|
||||||
if (pad->have_complete_edit_unit) {
|
if (pad->have_complete_edit_unit) {
|
||||||
GST_DEBUG_OBJECT (pad,
|
GST_DEBUG_OBJECT (pad,
|
||||||
|
|
Loading…
Reference in a new issue