mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-01-10 17:25:33 +00:00
update autogenerated files
This commit is contained in:
parent
ba22a36cdb
commit
25e0baf483
3 changed files with 5 additions and 5 deletions
|
@ -31,12 +31,12 @@ glib_wrapper! {
|
|||
}
|
||||
|
||||
impl DeviceProvider {
|
||||
pub fn register<'a, P: Into<Option<&'a Plugin>>>(plugin: P, name: &str, rank: u32, type_: glib::types::Type) -> bool {
|
||||
pub fn register<'a, P: Into<Option<&'a Plugin>>>(plugin: P, name: &str, rank: u32, type_: glib::types::Type) -> Result<(), glib::error::BoolError> {
|
||||
assert_initialized_main_thread!();
|
||||
let plugin = plugin.into();
|
||||
let plugin = plugin.to_glib_none();
|
||||
unsafe {
|
||||
from_glib(ffi::gst_device_provider_register(plugin.0, name.to_glib_none().0, rank, type_.to_glib()))
|
||||
glib::error::BoolError::from_glib(ffi::gst_device_provider_register(plugin.0, name.to_glib_none().0, rank, type_.to_glib()), "Failed to register device provider factory")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,12 +53,12 @@ impl Element {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn register<'a, P: Into<Option<&'a Plugin>>>(plugin: P, name: &str, rank: u32, type_: glib::types::Type) -> bool {
|
||||
pub fn register<'a, P: Into<Option<&'a Plugin>>>(plugin: P, name: &str, rank: u32, type_: glib::types::Type) -> Result<(), glib::error::BoolError> {
|
||||
assert_initialized_main_thread!();
|
||||
let plugin = plugin.into();
|
||||
let plugin = plugin.to_glib_none();
|
||||
unsafe {
|
||||
from_glib(ffi::gst_element_register(plugin.0, name.to_glib_none().0, rank, type_.to_glib()))
|
||||
glib::error::BoolError::from_glib(ffi::gst_element_register(plugin.0, name.to_glib_none().0, rank, type_.to_glib()), "Failed to register element factory")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 82cdb44)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 264af57)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||
|
|
Loading…
Reference in a new issue