mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 13:11:06 +00:00
adapter: Check if meta transform_func is NULL before using it
https://bugzilla.gnome.org/show_bug.cgi?id=782050
This commit is contained in:
parent
ca7fa6a661
commit
733de3190b
1 changed files with 1 additions and 1 deletions
|
@ -929,7 +929,7 @@ foreach_metadata (GstBuffer * inbuf, GstMeta ** meta, gpointer user_data)
|
||||||
GST_DEBUG ("copying metadata %s", g_type_name (info->api));
|
GST_DEBUG ("copying metadata %s", g_type_name (info->api));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (do_copy) {
|
if (do_copy && info->transform_func) {
|
||||||
GstMetaTransformCopy copy_data = { FALSE, 0, -1 };
|
GstMetaTransformCopy copy_data = { FALSE, 0, -1 };
|
||||||
GST_DEBUG ("copy metadata %s", g_type_name (info->api));
|
GST_DEBUG ("copy metadata %s", g_type_name (info->api));
|
||||||
/* simply copy then */
|
/* simply copy then */
|
||||||
|
|
Loading…
Reference in a new issue