mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 11:31:06 +00:00
Add Bus::remove_watch()
It was accidentially ignored before
This commit is contained in:
parent
da6b04abfd
commit
4692806b00
2 changed files with 6 additions and 5 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue