From: James Cowgill Date: Wed, 2 Feb 2022 15:28:21 +0000 (+0000) Subject: videoscale: Don't copy scaled metas X-Git-Tag: 1.22.0~1776 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c8a24146c496c5d4e08ef88f45f8ae69cfa1b242;p=platform%2Fupstream%2Fgstreamer.git 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: --- diff --git a/subprojects/gst-plugins-base/gst/videoconvertscale/gstvideoconvertscale.c b/subprojects/gst-plugins-base/gst/videoconvertscale/gstvideoconvertscale.c index c418125..577a03c 100644 --- a/subprojects/gst-plugins-base/gst/videoconvertscale/gstvideoconvertscale.c +++ b/subprojects/gst-plugins-base/gst/videoconvertscale/gstvideoconvertscale.c @@ -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; }