osxvideosink: fix deadlock upon closing output window
authorPiotr Brzeziński <piotr@centricular.com>
Fri, 5 May 2023 16:27:14 +0000 (18:27 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 13 May 2023 17:41:33 +0000 (18:41 +0100)
commit35db71f88a02c455f3d73f270a33df87f799b0ce
tree8a689ae735886ef548a0d68aa7187d4c44384489
parent8209ae476fd73f1e7733de7caa105771f249d040
osxvideosink: fix deadlock upon closing output window

Invoking gst_osx_video_sink_osxwindow_destroy() can currently cause a deadlock
because showFrame() keeps trying to get the same lock as well. Moving the lock
closer to where it's actually needed seems to be enough to fix the issue for now.

Reported-by: Alexande B <abobrikovich@gmail.com>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4627>
subprojects/gst-plugins-good/sys/osxvideo/osxvideosink.m