videocrop: Fix icles tests.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 17 Aug 2021 14:49:47 +0000 (16:49 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 17 Aug 2021 17:19:16 +0000 (17:19 +0000)
commitd1cd310e42933315b4722468c7b0929260cf9b4b
tree08c6057ca59e30f809324fa43199197b3d1804f8
parent286208576f1545b3b22d31246bc05b6e56e80bd5
videocrop: Fix icles tests.

Internally videcrop can call gst_video_crop_set_info() with NULL as in
caps. Then critical messages are raised when the in caps are
processed.

To fix this the in caps are checked, and if they are present, its
capsfeature is extracted, otherwise, the previous raw caps detection
remains as before.

Also the videocrop-test removes the format field in the structure
because now its always passed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1056>
gst/videocrop/gstvideocrop.c
tests/icles/videocrop-test.c