Commit 4692806b authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Add Bus::remove_watch()

It was accidentially ignored before
parent da6b04ab
......@@ -117,11 +117,6 @@ status = "generate"
name = "Gst.Bus"
status = "generate"
trait = false
[[object.function]]
name = "remove_watch"
# Needs manual bindings and GSource support in glib-rs
ignore = true
[[object.function]]
name = "add_signal_watch_full"
# Priority
......
......@@ -98,6 +98,12 @@ impl Bus {
}
}
pub fn remove_watch(&self) -> bool {
unsafe {
from_glib(ffi::gst_bus_remove_watch(self.to_glib_none().0))
}
}
pub fn set_flushing(&self, flushing: bool) {
unsafe {
ffi::gst_bus_set_flushing(self.to_glib_none().0, flushing.to_glib());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment