avviddec: Temporarily unlock stream lock while flushing buffers
authorSebastian Dröge <sebastian@centricular.com>
Fri, 12 May 2023 06:50:04 +0000 (09:50 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 13 May 2023 11:55:40 +0000 (12:55 +0100)
commit8209ae476fd73f1e7733de7caa105771f249d040
tree723947701f77c6f3ddd526eed330a73ba15e198b
parentff533b679dad9f548d50962cd6d37315ef3c30ae
avviddec: Temporarily unlock stream lock while flushing buffers

This can call into the decoder again from other threads and try to take
the stream lock from there, which would cause a deadlock.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2558

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4625>
subprojects/gst-libav/ext/libav/gstavviddec.c