diff options
author | François Laignel <fengalin@free.fr> | 2022-10-20 21:18:35 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2022-10-21 12:54:24 +0300 |
commit | 6319d104a85d49c7251a1649d297541b4618bf4f (patch) | |
tree | ee3af0e18bc7fbd047909f868c6ad6b834413787 /utils/fallbackswitch | |
parent | 7b5d887c5b00b330c4d31059299717641f31687f (diff) |
Take advantage of `Into<Option<_>>` args
Commit 24b7cfc8 applied changes related to nullability as declared
by gir. One consequence was that some functions signature ended up
requiring users to pass `Some(val)` when they could use `val`
before.
This commit applies changes on `gstreamer-rs` which, will honoring
the nullability stil allow users to pass `val` for the few affected
functions.
This commit also fixes the signature for `Element::request_new_pad`
which was updated upstream.
Diffstat (limited to 'utils/fallbackswitch')
-rw-r--r-- | utils/fallbackswitch/src/fallbackswitch/imp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/fallbackswitch/src/fallbackswitch/imp.rs b/utils/fallbackswitch/src/fallbackswitch/imp.rs index f649128e6..f9479a5ef 100644 --- a/utils/fallbackswitch/src/fallbackswitch/imp.rs +++ b/utils/fallbackswitch/src/fallbackswitch/imp.rs @@ -1333,7 +1333,7 @@ impl ElementImpl for FallbackSwitch { fn request_new_pad( &self, templ: &gst::PadTemplate, - _name: Option<String>, + _name: Option<&str>, _caps: Option<&gst::Caps>, ) -> Option<gst::Pad> { let mut state = self.state.lock(); |