check if tag is gst list

This commit is contained in:
Jacek Jendrzej
2017-11-11 16:55:02 +01:00
parent 6f006f1ce9
commit 50904a1825

View File

@@ -253,9 +253,12 @@ GstBusSyncReply Gst_bus_call(GstBus *bus, GstMessage *msg, gpointer user_data)
case GST_MESSAGE_TAG:
{
GstTagList *tags, *result;
GstTagList *tags = NULL, *result = NULL;
gst_message_parse_tag(msg, &tags);
if(tags != NULL || !GST_IS_TAG_LIST(tags))
break;
result = gst_tag_list_merge(m_stream_tags, tags, GST_TAG_MERGE_REPLACE);
if (result)
{