videoscale: Don't copy scaled metas
authorJames Cowgill <james.cowgill@blaize.com>
Wed, 2 Feb 2022 15:28:21 +0000 (15:28 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 22 Apr 2022 13:00:01 +0000 (13:00 +0000)
commitc8a24146c496c5d4e08ef88f45f8ae69cfa1b242
treef6846e105b031bbf3ecacc82824b24a102a10972
parent52d73703117872627b4aa76414213fb636e3c93e
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>
subprojects/gst-plugins-base/gst/videoconvertscale/gstvideoconvertscale.c