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:
Sebastian Dröge 2017-05-02 14:27:14 +03:00
parent ca7fa6a661
commit 733de3190b

View file

@ -929,7 +929,7 @@ foreach_metadata (GstBuffer * inbuf, GstMeta ** meta, gpointer user_data)
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 };
GST_DEBUG ("copy metadata %s", g_type_name (info->api));
/* simply copy then */