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
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user