From 2cf4ece73bc72fe69d7e1b4b46dbab100398b4cb Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 25 May 2017 16:42:03 +0200 Subject: [PATCH] adaptivedemux: Don't create invalid event tags could potentially be NULL --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index ba093a7d27..21ba1fc02b 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -2364,7 +2364,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;