va: vpp: global lock to handle shared buffers
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sat, 19 Sep 2020 12:26:42 +0000 (14:26 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 23 Sep 2020 16:19:22 +0000 (18:19 +0200)
commit990d1bfbce11a2c4f8d895541a1c1dd0ed55ca65
tree4bac921e7d956c5c4ab407b4b9a479998767f7a2
parent9845ec68dcc7b7afbdfbc3a280b88c8369632adb
va: vpp: global lock to handle shared buffers

Add a global mutex to exclusive access to shared stream buffers, such
as DMABufs or VASurfaces after a tee:

LIBVA_DRIVER_NAME=iHD \
gst-launch-1.0 v4l2src ! tee name=t t. ! queue ! \
  vapostproc skin-tone=9 ! xvimagesink \
  t. ! queue ! vapostproc ! xvimagesink

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1529>
sys/va/gstvafilter.c
sys/va/gstvavpp.c
sys/va/plugin.c