videoscale: Don't copy scaled metas

Returning TRUE from the `transform_meta` function tells
GstBaseTransform to copy the meta into the new buffer. If videoscale
has already transformed a meta by scaling it, it should always return
FALSE to avoid duplicating the meta.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1630>
This commit is contained in:
James Cowgill 2022-02-02 15:28:21 +00:00 committed by GStreamer Marge Bot
parent 52d7370311
commit c8a24146c4

View file

@ -726,7 +726,7 @@ gst_video_convert_scale_transform_meta (GstBaseTransform * trans,
{ &videofilter->in_info, &videofilter->out_info };
if (info->transform_func)
return info->transform_func (outbuf, meta, inbuf, _scale_quark, &trans);
info->transform_func (outbuf, meta, inbuf, _scale_quark, &trans);
return FALSE;
}