Structure intersection can return None

This commit is contained in:
Sebastian Dröge 2017-12-17 11:52:52 +02:00
parent dfdae187a3
commit 1f6fd3def7

View file

@ -403,7 +403,7 @@ impl StructureRef {
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)) }
}