adaptivedemux: Don't create invalid event
tags could potentially be NULL
This commit is contained in:
parent
430a90df20
commit
2cf4ece73b
@ -2364,7 +2364,8 @@ gst_adaptive_demux_stream_push_buffer (GstAdaptiveDemuxStream * stream,
|
|||||||
gst_tag_list_add (tags, GST_TAG_MERGE_KEEP,
|
gst_tag_list_add (tags, GST_TAG_MERGE_KEEP,
|
||||||
GST_TAG_NOMINAL_BITRATE, stream->fragment.bitrate, NULL);
|
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)) {
|
if (G_UNLIKELY (stream->pending_events)) {
|
||||||
pending_events = stream->pending_events;
|
pending_events = stream->pending_events;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user