From 733de3190b98f9fb7c9b7240ad2d2abb104a8c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 2 May 2017 14:27:14 +0300 Subject: [PATCH] adapter: Check if meta transform_func is NULL before using it https://bugzilla.gnome.org/show_bug.cgi?id=782050 --- libs/gst/base/gstadapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gst/base/gstadapter.c b/libs/gst/base/gstadapter.c index 6c56c41f9a..e3dff288fc 100644 --- a/libs/gst/base/gstadapter.c +++ b/libs/gst/base/gstadapter.c @@ -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 */