mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-29 13:30:34 +00:00
8e38d861b4
When initializing Pad functions in `Pad{Src,Sink}`, we downgrade the `Pad{Src,Sink}` and upgrade it when necessary. This was implemented to avoid reference cycles: `gst::Pad` -> pad function -> `Pad{Src,Sink}` -> `gst::Pad`. Since `Pad{Src,Sink}` reset the pad functions when dropping, there is no cycles, so we can use an `Arc<Pad{Src,Sink}>` in the pad functions, thus saving an `upgrade`. |
||
---|---|---|
.. | ||
examples | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml |