Pad::new_from_static_pad_template_with_gtype() can return None

This commit is contained in:
Sebastian Dröge 2019-01-29 15:55:51 +02:00
parent 00cbd49923
commit 5625a75b1b

View file

@ -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<PadTemplate> {
assert_initialized_main_thread!();
unsafe {
from_glib_none(