From 39dbbf1369a0edeeacb5ba1624d2b419bfb98b35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 18 Aug 2020 10:26:48 +0300 Subject: [PATCH] videoscale: Don't call NULL GstMeta transform function It's optional and if it does not exist then no transformation is possible. Part-of: --- gst/videoscale/gstvideoscale.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 0a67b44a95..198a767747 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -543,7 +543,9 @@ gst_video_scale_transform_meta (GstBaseTransform * trans, GstBuffer * inbuf, GstVideoMetaTransform trans = { &videofilter->in_info, &videofilter->out_info }; - return info->transform_func (outbuf, meta, inbuf, _scale_quark, &trans); + if (info->transform_func) + return info->transform_func (outbuf, meta, inbuf, _scale_quark, &trans); + return FALSE; } /* No need to transform, we can safely copy this meta */