gstreamer/ext/wpe
Matthew Waters 3ed0ee95f2 wpesrc: fix possible small deadlock on shutdown
Problem is that unreffing the EGLImage/SHM Buffer while holding the
images_mutex lock may deadlock when a new buffer is advertised and
an attempt is made to lock the images_mutex there.

The advertisement of the new image/buffer is performed in the
WPEContextThread and the blocking dispatch when unreffing wants to run
something on the WPEContextThread however images_mutex has already been
locked by the destructor.

Delay unreffing images/buffers outside of images_mutex and instead just
clear the relevant fields within the lock.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1843>
2021-01-25 09:15:28 +00:00
..
gstwpesrc.cpp wpesrc: replace object lock usage with a new lock 2021-01-12 08:35:10 +00:00
gstwpesrc.h wpe: Rewrite wpesrc as a glbasesrc subclass 2019-10-17 08:15:44 +00:00
meson.build wpe: Add software rendering support support 2020-02-11 16:47:53 +00:00
WPEThreadedView.cpp wpesrc: fix possible small deadlock on shutdown 2021-01-25 09:15:28 +00:00
WPEThreadedView.h wpe: Don't crash when running on X11. 2020-11-15 15:27:08 +00:00