videocrop: handle non raw caps features
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 19 Mar 2021 16:19:43 +0000 (17:19 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 26 Mar 2021 10:19:03 +0000 (10:19 +0000)
commitdb382cbc3d3136033eeab0768eb96fc78bbdc814
tree030d617fe6dea2eac7b111c4573b68e30d5319e0
parent516988bfad1dd4ee9b9fde06f61e18cbb968e8f9
videocrop: handle non raw caps features

Currently, videocrop, only negotiates raw caps (system memory) because
it's the type of memory it can modify. Nonetheless, it's also possible
for the element to handle non-raw caps when only adding the crop meta
is possible, in other words, when downstream buffer pools expose the
crop API.

This patch enable non-raw caps negotiation. If downstream doesn't
expose crop API and negotiated caps are featured, the negotiation
fails.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/915>
docs/gst_plugins_cache.json
gst/videocrop/gstvideocrop.c
gst/videocrop/gstvideocrop.h
tests/check/elements/videocrop.c