xvimagesink: Handle cropping when copying frames.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 16 Apr 2021 16:10:38 +0000 (18:10 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 28 Apr 2021 11:00:56 +0000 (11:00 +0000)
commit87193af4d522952cd18225a4b6f2e9607c871776
tree2edc07f1ae76dc911f5cca3fad5acb8b917d6f63
parentc38bede8babcee65cede7c153d6d7d8c82dd52f2
xvimagesink: Handle cropping when copying frames.

Cropping was not handled properly when frames have to be copied to
xvimage's buffer pool, first because the crop meta were dropped, and
second because the allocated frame size in xvimage's buffer pool were
smaller than the incoming frame.

This patch updates xvimagesink's video info when propose_allocation()
is called, and copies the GstVideoCropMeta from source frame to
destination one.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1088>
sys/xvimage/xvimagesink.c