mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 03:21:00 +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`. |
||
---|---|---|
.. | ||
file | ||
sodium | ||
threadshare |