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
path: root/mux
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2023-03-09 17:46:52 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-03-09 17:46:52 +0300
commitfc5ed15af584770bdca21a3439ba9c368707ec42 (patch)
tree1ae97c6c955b77f2f15dd3783c25a171d45c8da0 /mux
parentb9cd71d8ebb904e043e109578bba73c1f5c849b4 (diff)
Update for `gst::Element::link_many()` and related API generalization
Specifically, get rid of now unneeded `&`.
Diffstat (limited to 'mux')
-rw-r--r--mux/fmp4/examples/hls_live.rs8
-rw-r--r--mux/fmp4/examples/hls_vod.rs8
2 files changed, 8 insertions, 8 deletions
diff --git a/mux/fmp4/examples/hls_live.rs b/mux/fmp4/examples/hls_live.rs
index aaec4f2e5..fa77a37aa 100644
--- a/mux/fmp4/examples/hls_live.rs
+++ b/mux/fmp4/examples/hls_live.rs
@@ -425,7 +425,7 @@ impl VideoStream {
.build()?;
let appsink = gst_app::AppSink::builder().buffer_list(true).build();
- pipeline.add_many(&[
+ pipeline.add_many([
&src,
&raw_capsfilter,
&timeoverlay,
@@ -435,7 +435,7 @@ impl VideoStream {
appsink.upcast_ref(),
])?;
- gst::Element::link_many(&[
+ gst::Element::link_many([
&src,
&raw_capsfilter,
&timeoverlay,
@@ -472,9 +472,9 @@ impl AudioStream {
.build()?;
let appsink = gst_app::AppSink::builder().buffer_list(true).build();
- pipeline.add_many(&[&src, &enc, &mux, appsink.upcast_ref()])?;
+ pipeline.add_many([&src, &enc, &mux, appsink.upcast_ref()])?;
- gst::Element::link_many(&[&src, &enc, &mux, appsink.upcast_ref()])?;
+ gst::Element::link_many([&src, &enc, &mux, appsink.upcast_ref()])?;
probe_encoder(state, enc);
diff --git a/mux/fmp4/examples/hls_vod.rs b/mux/fmp4/examples/hls_vod.rs
index 1f987b6d4..a31f17db8 100644
--- a/mux/fmp4/examples/hls_vod.rs
+++ b/mux/fmp4/examples/hls_vod.rs
@@ -318,7 +318,7 @@ impl VideoStream {
.build()?;
let appsink = gst_app::AppSink::builder().buffer_list(true).build();
- pipeline.add_many(&[
+ pipeline.add_many([
&src,
&raw_capsfilter,
&timeoverlay,
@@ -328,7 +328,7 @@ impl VideoStream {
appsink.upcast_ref(),
])?;
- gst::Element::link_many(&[
+ gst::Element::link_many([
&src,
&raw_capsfilter,
&timeoverlay,
@@ -372,9 +372,9 @@ impl AudioStream {
.build()?;
let appsink = gst_app::AppSink::builder().buffer_list(true).build();
- pipeline.add_many(&[&src, &raw_capsfilter, &enc, &mux, appsink.upcast_ref()])?;
+ pipeline.add_many([&src, &raw_capsfilter, &enc, &mux, appsink.upcast_ref()])?;
- gst::Element::link_many(&[&src, &raw_capsfilter, &enc, &mux, appsink.upcast_ref()])?;
+ gst::Element::link_many([&src, &raw_capsfilter, &enc, &mux, appsink.upcast_ref()])?;
probe_encoder(state, enc);