Registry::scan_path() returning false is not an error

This commit is contained in:
Sebastian Dröge 2017-12-03 14:54:52 +02:00
parent 6015e74f0e
commit e5bbf93670
2 changed files with 2 additions and 7 deletions

View file

@ -618,11 +618,6 @@ trait = false
[object.function.return] [object.function.return]
bool_return_is_error = "Failed to add plugin" 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]] [[object]]
name = "Gst.*" name = "Gst.*"
status = "generate" status = "generate"

View file

@ -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 { 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))
} }
} }