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 <francois@centricular.com>2023-02-25 20:30:26 +0300
committerFrançois Laignel <francois@centricular.com>2023-05-12 13:55:31 +0300
commit8e93d294e5a61a94f14e812bef59cd0e529494e1 (patch)
tree44e430dd6a9f8eb76fee8a0403c62d92eeff6bb8 /generic
parent32d59c31d8df826fca0615fa140b45b0ea7052fa (diff)
Update to argumentless {Bin,Pipeline}::new
See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/449 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1197>
Diffstat (limited to 'generic')
-rw-r--r--generic/sodium/examples/decrypt_example.rs2
-rw-r--r--generic/sodium/examples/encrypt_example.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/generic/sodium/examples/decrypt_example.rs b/generic/sodium/examples/decrypt_example.rs
index b88e57138..40ce17741 100644
--- a/generic/sodium/examples/decrypt_example.rs
+++ b/generic/sodium/examples/decrypt_example.rs
@@ -100,7 +100,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.build()
.unwrap();
- let pipeline = gst::Pipeline::builder().name("test-pipeline").build();
+ let pipeline = gst::Pipeline::with_name("test-pipeline");
pipeline
.add_many([&filesrc, &decrypter, &typefind, &filesink])
.expect("failed to add elements to the pipeline");
diff --git a/generic/sodium/examples/encrypt_example.rs b/generic/sodium/examples/encrypt_example.rs
index 54a66e8a3..d9076eef8 100644
--- a/generic/sodium/examples/encrypt_example.rs
+++ b/generic/sodium/examples/encrypt_example.rs
@@ -103,7 +103,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.build()
.unwrap();
- let pipeline = gst::Pipeline::builder().name("test-pipeline").build();
+ let pipeline = gst::Pipeline::with_name("test-pipeline");
pipeline
.add_many([&filesrc, &encrypter, &filesink])
.expect("failed to add elements to the pipeline");