parse_bin_from_description() return value is not nullable, except for errors

This commit is contained in:
Sebastian Dröge 2017-12-20 18:20:19 +02:00
parent 210119d9aa
commit e34212d517
2 changed files with 6 additions and 1 deletions

View file

@ -960,6 +960,11 @@ status = "generate"
[object.function.return]
nullable = false
[[object.function]]
name = "parse_bin_from_description"
[object.function.return]
nullable = false
[[object]]
name = "Gst.StateChangeReturn"
status = "generate"

View file

@ -117,7 +117,7 @@ pub fn debug_unset_threshold_for_name(name: &str) {
}
}
pub fn parse_bin_from_description(bin_description: &str, ghost_unlinked_pads: bool) -> Result<Option<Bin>, Error> {
pub fn parse_bin_from_description(bin_description: &str, ghost_unlinked_pads: bool) -> Result<Bin, Error> {
assert_initialized_main_thread!();
unsafe {
let mut error = ptr::null_mut();