summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2020-11-27 16:18:29 +1100
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-01-25 09:15:28 +0000
commit3ed0ee95f2d87c34d93aa445b3bed81cf20e023b (patch)
treef664777bfaf32194de08467510906688f7d26844 /sys
parent1753d2931c4fe346ca5d2781991a2a21bd3dddb2 (diff)
downloadgstreamer-plugins-bad-3ed0ee95f2d87c34d93aa445b3bed81cf20e023b.tar.gz
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>
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions