diff --git a/gstreamer/Gir.toml b/gstreamer/Gir.toml index 2b667f134..dece0f730 100644 --- a/gstreamer/Gir.toml +++ b/gstreamer/Gir.toml @@ -556,6 +556,10 @@ manual_traits = ["ElementExtManual"] [[object.function]] name = "link_filtered" + [[object.function.parameter]] + name = "filter" + # Can use `link` instead + nullable = false [object.function.return] bool_return_is_error = "Failed to link elements" @@ -566,6 +570,10 @@ manual_traits = ["ElementExtManual"] [[object.function]] name = "link_pads_filtered" + [[object.function.parameter]] + name = "filter" + # Can use `link` instead + nullable = false [object.function.return] bool_return_is_error = "Failed to link pads" diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index 2488d37fd..4f2751d9b 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -172,7 +172,7 @@ pub trait ElementExt: 'static { fn link_filtered>( &self, dest: &P, - filter: Option<&Caps>, + filter: &Caps, ) -> Result<(), glib::error::BoolError>; //#[doc(alias = "gst_element_link_many")] @@ -192,7 +192,7 @@ pub trait ElementExt: 'static { srcpadname: Option<&str>, dest: &P, destpadname: Option<&str>, - filter: Option<&Caps>, + filter: &Caps, ) -> Result<(), glib::error::BoolError>; #[doc(alias = "gst_element_link_pads_full")] @@ -547,7 +547,7 @@ impl> ElementExt for O { fn link_filtered>( &self, dest: &P, - filter: Option<&Caps>, + filter: &Caps, ) -> Result<(), glib::error::BoolError> { unsafe { glib::result_from_gboolean!( @@ -589,7 +589,7 @@ impl> ElementExt for O { srcpadname: Option<&str>, dest: &P, destpadname: Option<&str>, - filter: Option<&Caps>, + filter: &Caps, ) -> Result<(), glib::error::BoolError> { unsafe { glib::result_from_gboolean!(