forked from mirrors/gstreamer-rs
update_registry() returning false is not an error
It means that there were no changes.
This commit is contained in:
parent
e34212d517
commit
55c8cf69f3
2 changed files with 2 additions and 8 deletions
|
@ -765,11 +765,6 @@ trait = false
|
||||||
[[object]]
|
[[object]]
|
||||||
name = "Gst.*"
|
name = "Gst.*"
|
||||||
status = "generate"
|
status = "generate"
|
||||||
[[object.function]]
|
|
||||||
name = "update_registry"
|
|
||||||
[object.function.return]
|
|
||||||
bool_return_is_error = "Failed to update registry"
|
|
||||||
|
|
||||||
[[object.function]]
|
[[object.function]]
|
||||||
name = "util_dump_mem"
|
name = "util_dump_mem"
|
||||||
ignore = true
|
ignore = true
|
||||||
|
|
|
@ -10,7 +10,6 @@ use Error;
|
||||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
use StackTraceFlags;
|
use StackTraceFlags;
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use std;
|
use std;
|
||||||
|
@ -144,10 +143,10 @@ pub fn parse_launchv(argv: &[&str]) -> Result<Element, Error> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn update_registry() -> Result<(), glib::error::BoolError> {
|
pub fn update_registry() -> bool {
|
||||||
assert_initialized_main_thread!();
|
assert_initialized_main_thread!();
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::error::BoolError::from_glib(ffi::gst_update_registry(), "Failed to update registry")
|
from_glib(ffi::gst_update_registry())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue