Commit 1e3a3aed authored by Edward Hervey's avatar Edward Hervey 🤘 Committed by Sebastian Dröge

adaptivedemux: Don't create invalid event

tags could potentially be NULL
parent f0185f4b
......@@ -2274,7 +2274,8 @@ gst_adaptive_demux_stream_push_buffer (GstAdaptiveDemuxStream * stream,
gst_tag_list_add (tags, GST_TAG_MERGE_KEEP,
GST_TAG_NOMINAL_BITRATE, stream->fragment.bitrate, NULL);
}
pending_tags = gst_event_new_tag (tags);
if (tags)
pending_tags = gst_event_new_tag (tags);
}
if (G_UNLIKELY (stream->pending_events)) {
pending_events = stream->pending_events;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment