va: allocator: broadcast when flushing
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 17 Nov 2020 12:18:37 +0000 (13:18 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 24 Nov 2020 11:44:24 +0000 (12:44 +0100)
commit8fc50891b11829e2efd8ac22c2ecc62e46f98252
treeb536429c76db6cda8af939baae218684bed9aa25
parent72ab56c3769ed1de06f39e3d9c776a8675821bab
va: allocator: broadcast when flushing

This patch handles when the bufferpool request a new buffer while
flushing.

Also fixes the usage of g_cond_wait(), which demands to be used
inside a loop to avoid spurious wakeups.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1815>
sys/va/gstvaallocator.c
sys/va/gstvapool.c