mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-27 14:01:04 +00:00
53e948b8da
ProxySink previously blocked on receiving the source pad of ProxySrc in its ReadyToPaused transition, which meant ProxySrc had to transition to Ready at the same time. The usual use case is for the source and sink to reside in two separate pipelines, and such an arrangement easily led to deadlocks, as examplified by the new test case. Instead we now maintain two more global hash maps holding per-context sink pads and src pads weak references, and forward events to those when needed. As ProxySink may not have a source pad context to run a future on when receiving FlushStart, gst::Element::call_async is used instead, with a simple oneshot channel used to synchronize flush start and flush stop handling. |
||
---|---|---|
.. | ||
examples | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml |