gstreamer-rs/tutorials
Johan Sternerup e026d922e4 gstreamr: bus: Add BusWatchGuard to automatically remove watch
Previously, with add_watch()/add_watch_local() you had to remember
calling remove_watch() in order not to leak the bus, the watch source
and two associated file descriptors. Now these methods instead return an
object of type BusWatchGuard that will automatically remove the bus
watch when the object is dropped.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1248>
2023-04-14 11:53:41 +03:00
..
src gstreamr: bus: Add BusWatchGuard to automatically remove watch 2023-04-14 11:53:41 +03:00
Cargo.toml Update minimum supported Rust version to 1.66 2023-02-20 10:42:07 +02:00