fallbackswitch deadlock with active-pad notify
- Fallbackswitch is holding the
src_pad
stream_lock
while notifyingactive-pad
. - Reading the
active-pad
property from anotify
signal handler obtains thestate
lock. - The sink chain and event functions hold the
state
lock while obtaining thestream_lock
.
If another thread is currently holding the state
lock and waiting on the stream_lock
while we're notifying active-pad
with a handler, we end up in a deadlock.
Edited by Jan Alexander Steffens