mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
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>
This commit is contained in:
parent
1ce61b1b08
commit
39dbbf1369
1 changed files with 3 additions and 1 deletions
|
@ -543,7 +543,9 @@ gst_video_scale_transform_meta (GstBaseTransform * trans, GstBuffer * inbuf,
|
|||
GstVideoMetaTransform trans =
|
||||
{ &videofilter->in_info, &videofilter->out_info };
|
||||
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue