xvimagesink: Delay pool creation until it's needed.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 1 Apr 2021 13:30:41 +0000 (15:30 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 28 Apr 2021 11:00:56 +0000 (11:00 +0000)
commitc38bede8babcee65cede7c153d6d7d8c82dd52f2
tree4693a745ab6b42bf2f688c1b19b0b6a4c5ddd5cf
parentc16412dd63545c06ff60556f04e61672fdae1531
xvimagesink: Delay pool creation until it's needed.

Buffer pool is created every time setcaps() is called, but it's
required only when upstream doesn't use it, so it's only needed to
copy frames onto XV buffers.

This patch delay the creation of the buffer pool until it's frame copy
is required.

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