From 5625a75b1b2f0932306580e2d7ec6229690eb8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 29 Jan 2019 15:55:51 +0200 Subject: [PATCH] Pad::new_from_static_pad_template_with_gtype() can return None --- gstreamer/src/pad_template.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer/src/pad_template.rs b/gstreamer/src/pad_template.rs index 1913f5063..48052e740 100644 --- a/gstreamer/src/pad_template.rs +++ b/gstreamer/src/pad_template.rs @@ -22,7 +22,7 @@ impl PadTemplate { pub fn new_from_static_pad_template_with_gtype( pad_template: &StaticPadTemplate, pad_type: glib::types::Type, - ) -> PadTemplate { + ) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(