gst-plugins-rs/utils/fallbackswitch/src
Jan Alexander Steffens (heftig) d27e279272
fallbackswitch: Move active_sinkpad out of State into its own Mutex
As described in issue #200, we hold the srcpad's stream lock in some
situations where we notify the `active-pad` property.

If there's a handler installed it will most likely attempt to read the
property, which had to take the `state` lock. Another thread could
already be holding this lock and attempting to obtain the srcpad's
stream lock. This resulted in a deadlock.

To avoid this, move the `active_sinkpad` field into its own Mutex, which
we never hold for long.

Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/200
2022-05-12 16:52:07 +02:00
..
fallbacksrc fallbacksrc: Don't forward manual flush events to downstream 2022-04-12 23:21:32 +09:00
fallbackswitch fallbackswitch: Move active_sinkpad out of State into its own Mutex 2022-05-12 16:52:07 +02:00
lib.rs fallbackswitch: Replace with priorityswitch 2022-04-05 18:52:31 +03:00