From c8a24146c496c5d4e08ef88f45f8ae69cfa1b242 Mon Sep 17 00:00:00 2001 From: James Cowgill Date: Wed, 2 Feb 2022 15:28:21 +0000 Subject: [PATCH] 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: --- .../gst-plugins-base/gst/videoconvertscale/gstvideoconvertscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4