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(