if (stream->pending_caps)
gst_caps_unref (stream->pending_caps);
- g_clear_pointer (&stream->pending_tags, gst_tag_list_unref);
+ gst_clear_tag_list (&stream->pending_tags);
g_clear_pointer (&stream->stream_collection, gst_object_unref);
G_OBJECT_CLASS (parent_class)->finalize (object);
stream_type = gst_stream_get_stream_type (gst_stream);
GST_DEBUG_OBJECT (pad,
- "Trying to match pad from parsebin with internal streamid %s and caps %"
- GST_PTR_FORMAT, GST_STR_NULL (internal_stream_id),
- gst_stream_get_caps (gst_stream));
+ "Trying to match pad from parsebin with internal streamid %s and stream %"
+ GST_PTR_FORMAT, GST_STR_NULL (internal_stream_id), gst_stream);
/* Try to match directly by the track's pending upstream_stream_id */
for (tmp = stream->tracks; tmp; tmp = tmp->next) {
default:
break;
}
+ if (tags)
+ gst_tag_list_unref (tags);
}
/* Check that we either have at most 1 of each track type, or that