diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-08-18 10:26:48 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-08-18 10:26:48 +0300 |
commit | 39dbbf1369a0edeeacb5ba1624d2b419bfb98b35 (patch) | |
tree | 817fdfd45da33cdabf2a634fd827409514cec43e | |
parent | 1ce61b1b08fb8c7513f543e308182cde9d060f44 (diff) | |
download | gstreamer-plugins-base-39dbbf1369a0edeeacb5ba1624d2b419bfb98b35.tar.gz |
videoscale: Don't call NULL GstMeta transform function
It's optional and if it does not exist then no transformation is
possible.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/790>
-rw-r--r-- | gst/videoscale/gstvideoscale.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 0a67b44a9..198a76774 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 */ |