va: allocator: refactor flush methods for both allocators
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sun, 4 Oct 2020 08:01:31 +0000 (10:01 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 4 Oct 2020 18:42:51 +0000 (18:42 +0000)
commitdcc4557dd6228324ef4b473e99b79c02b258d33c
treebd9b35e56d474ffaa18166ccb9bb4c7dc62d78d4
parent37fa6df57d194946a400316a14203b24253525a1
va: allocator: refactor flush methods for both allocators

Since the logic is the same, it can be generalized in a single common
function.

Also the methods run the common function with a lock and signal the
buffers' conditional.

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