Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Laignel <fengalin@free.fr>2022-10-20 21:18:35 +0300
committerFrançois Laignel <fengalin@free.fr>2022-10-21 12:54:24 +0300
commit6319d104a85d49c7251a1649d297541b4618bf4f (patch)
treeee3af0e18bc7fbd047909f868c6ad6b834413787 /generic/threadshare/src/appsrc
parent7b5d887c5b00b330c4d31059299717641f31687f (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 'generic/threadshare/src/appsrc')
-rw-r--r--generic/threadshare/src/appsrc/imp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/threadshare/src/appsrc/imp.rs b/generic/threadshare/src/appsrc/imp.rs
index b4e64c9bd..b5636e08d 100644
--- a/generic/threadshare/src/appsrc/imp.rs
+++ b/generic/threadshare/src/appsrc/imp.rs
@@ -128,7 +128,7 @@ impl PadSrcHandler for AppSrcPadHandler {
.unwrap_or_else(gst::Caps::new_any)
};
- q.set_result(Some(&caps));
+ q.set_result(&caps);
true
}