mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 21:11:14 +00:00
Structure intersection can return None
This commit is contained in:
parent
dfdae187a3
commit
1f6fd3def7
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ impl StructureRef {
|
||||||
unsafe { from_glib(ffi::gst_structure_can_intersect(&self.0, &other.0)) }
|
unsafe { from_glib(ffi::gst_structure_can_intersect(&self.0, &other.0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn intersect(&self, other: &StructureRef) -> Structure {
|
pub fn intersect(&self, other: &StructureRef) -> Option<Structure> {
|
||||||
unsafe { from_glib_full(ffi::gst_structure_intersect(&self.0, &other.0)) }
|
unsafe { from_glib_full(ffi::gst_structure_intersect(&self.0, &other.0)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue