Commit 733de319 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

adapter: Check if meta transform_func is NULL before using it

https://bugzilla.gnome.org/show_bug.cgi?id=782050
parent ca7fa6a6
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment