Commit e5bbf936 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

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

parent 6015e74f
......@@ -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))
}
}
......
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