mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
rtputils: Don't call NULL GstMeta transform function
It's optional and if it does not exist then no transformation is possible. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/701>
This commit is contained in:
parent
91972c91aa
commit
85a6e95c7d
1 changed files with 3 additions and 2 deletions
|
@ -39,8 +39,9 @@ foreach_metadata_copy (GstBuffer * inbuf, GstMeta ** meta, gpointer user_data)
|
|||
const GstMetaInfo *info = (*meta)->info;
|
||||
const gchar *const *tags = gst_meta_api_type_get_tags (info->api);
|
||||
|
||||
if (!tags || (copy_tag != 0 && g_strv_length ((gchar **) tags) == 1
|
||||
&& gst_meta_api_type_has_tag (info->api, copy_tag))) {
|
||||
if (info->transform_func && (!tags || (copy_tag != 0
|
||||
&& g_strv_length ((gchar **) tags) == 1
|
||||
&& gst_meta_api_type_has_tag (info->api, copy_tag)))) {
|
||||
GstMetaTransformCopy copy_data = { FALSE, 0, -1 };
|
||||
GST_DEBUG_OBJECT (element, "copy metadata %s", g_type_name (info->api));
|
||||
/* simply copy then */
|
||||
|
|
Loading…
Reference in a new issue