adaptivedemux2: stream: Don't take TRACKS_LOCK when sending EOS event
authorJan Schmidt <jan@centricular.com>
Tue, 21 Jun 2022 17:30:16 +0000 (03:30 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 28 Jun 2022 18:34:31 +0000 (18:34 +0000)
commite1559d26d0610a5186ec2596023d836611ae7221
tree420f2d2ca95f9efc3d84edbd5928743bcec323ed
parente9f8c7d33a4305ccacd1f7a8c0907a293bfa8042
adaptivedemux2: stream: Don't take TRACKS_LOCK when sending EOS event

The stream tracks list can't change while we're
iterating it from the scheduling thread,
and the event handler immediately takes the
tracks lock, causing a deadlock.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2650>
subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c