mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
adaptivedemux: Don't create invalid event
tags could potentially be NULL
This commit is contained in:
parent
430a90df20
commit
2cf4ece73b
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue