va: filter: Protect filters array of overwrite.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 23 Aug 2021 14:29:36 +0000 (16:29 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 10 Sep 2021 12:45:00 +0000 (14:45 +0200)
commit51dcba7b1e0de470a16a5ce0f14f246ae11c75ce
treee7e6609ea1b7e5a4b80535b1e82dc27c91dbeb78
parentcc91fd0956401dc9450a0dc129341526e3aa83c7
va: filter: Protect filters array of overwrite.

It's possible to modify the filters array from another GStremer
thread, and the post-processing operation is not atomic, so the filter
array is reffed while the VA pipeline is processed.

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