From 1f6fd3def7b76b8606ecb6726b025d83c08c4c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 17 Dec 2017 11:52:52 +0200 Subject: [PATCH] Structure intersection can return None --- gstreamer/src/structure.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer/src/structure.rs b/gstreamer/src/structure.rs index dbb7a5501..8af37b0e5 100644 --- a/gstreamer/src/structure.rs +++ b/gstreamer/src/structure.rs @@ -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 { unsafe { from_glib_full(ffi::gst_structure_intersect(&self.0, &other.0)) } }