forked from mirrors/gstreamer-rs
Registry::scan_path() returning false is not an error
This commit is contained in:
parent
6015e74f0e
commit
e5bbf93670
2 changed files with 2 additions and 7 deletions
|
@ -618,11 +618,6 @@ trait = false
|
|||
[object.function.return]
|
||||
bool_return_is_error = "Failed to add plugin"
|
||||
|
||||
[[object.function]]
|
||||
name = "scan_path"
|
||||
[object.function.return]
|
||||
bool_return_is_error = "Failed to scan path"
|
||||
|
||||
[[object]]
|
||||
name = "Gst.*"
|
||||
status = "generate"
|
||||
|
|
|
@ -113,9 +113,9 @@ impl Registry {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn scan_path<P: AsRef<std::path::Path>>(&self, path: P) -> Result<(), glib::error::BoolError> {
|
||||
pub fn scan_path<P: AsRef<std::path::Path>>(&self, path: P) -> bool {
|
||||
unsafe {
|
||||
glib::error::BoolError::from_glib(ffi::gst_registry_scan_path(self.to_glib_none().0, path.as_ref().to_glib_none().0), "Failed to scan path")
|
||||
from_glib(ffi::gst_registry_scan_path(self.to_glib_none().0, path.as_ref().to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue