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:
authorSebastian Dröge <sebastian@centricular.com>2023-03-09 18:30:57 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-03-09 18:30:57 +0300
commitb025d068f2a62910d22ddd5c9136aa9d3cc0f0ae (patch)
tree7202dc2b40521240f236e156a89ddf59d18a3cf6 /generic
parentfc5ed15af584770bdca21a3439ba9c368707ec42 (diff)
Update for remaining `gst::Element::link_many()` and related API generalization
Specifically, get rid of now unneeded `&`.
Diffstat (limited to 'generic')
-rw-r--r--generic/sodium/examples/decrypt_example.rs4
-rw-r--r--generic/sodium/examples/encrypt_example.rs4
-rw-r--r--generic/sodium/tests/decrypter.rs8
3 files changed, 8 insertions, 8 deletions
diff --git a/generic/sodium/examples/decrypt_example.rs b/generic/sodium/examples/decrypt_example.rs
index f888c96ec..b88e57138 100644
--- a/generic/sodium/examples/decrypt_example.rs
+++ b/generic/sodium/examples/decrypt_example.rs
@@ -102,9 +102,9 @@ fn main() -> Result<(), Box<dyn Error>> {
let pipeline = gst::Pipeline::builder().name("test-pipeline").build();
pipeline
- .add_many(&[&filesrc, &decrypter, &typefind, &filesink])
+ .add_many([&filesrc, &decrypter, &typefind, &filesink])
.expect("failed to add elements to the pipeline");
- gst::Element::link_many(&[&filesrc, &decrypter, &typefind, &filesink])
+ gst::Element::link_many([&filesrc, &decrypter, &typefind, &filesink])
.expect("failed to link the elements");
pipeline
diff --git a/generic/sodium/examples/encrypt_example.rs b/generic/sodium/examples/encrypt_example.rs
index b94fee5cc..54a66e8a3 100644
--- a/generic/sodium/examples/encrypt_example.rs
+++ b/generic/sodium/examples/encrypt_example.rs
@@ -105,9 +105,9 @@ fn main() -> Result<(), Box<dyn Error>> {
let pipeline = gst::Pipeline::builder().name("test-pipeline").build();
pipeline
- .add_many(&[&filesrc, &encrypter, &filesink])
+ .add_many([&filesrc, &encrypter, &filesink])
.expect("failed to add elements to the pipeline");
- gst::Element::link_many(&[&filesrc, &encrypter, &filesink])
+ gst::Element::link_many([&filesrc, &encrypter, &filesink])
.expect("failed to link the elements");
pipeline.set_state(gst::State::Playing)?;
diff --git a/generic/sodium/tests/decrypter.rs b/generic/sodium/tests/decrypter.rs
index 43ba194fb..a8a154ca2 100644
--- a/generic/sodium/tests/decrypter.rs
+++ b/generic/sodium/tests/decrypter.rs
@@ -91,9 +91,9 @@ fn test_pipeline() {
let sink = gst_app::AppSink::builder().build();
pipeline
- .add_many(&[&filesrc, &dec, &typefind, sink.upcast_ref()])
+ .add_many([&filesrc, &dec, &typefind, sink.upcast_ref()])
.expect("failed to add elements to the pipeline");
- gst::Element::link_many(&[&filesrc, &dec, &typefind, sink.upcast_ref()])
+ gst::Element::link_many([&filesrc, &dec, &typefind, sink.upcast_ref()])
.expect("failed to link the elements");
let adapter = Arc::new(Mutex::new(gst_base::UniqueAdapter::new()));
@@ -179,9 +179,9 @@ fn test_pull_range() {
.unwrap();
pipeline
- .add_many(&[&filesrc, &dec])
+ .add_many([&filesrc, &dec])
.expect("failed to add elements to the pipeline");
- gst::Element::link_many(&[&filesrc, &dec]).expect("failed to link the elements");
+ gst::Element::link_many([&filesrc, &dec]).expect("failed to link the elements");
// Activate in the pad in pull mode
pipeline