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
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>
-rw-r--r--generic/sodium/examples/decrypt_example.rs2
-rw-r--r--generic/sodium/examples/encrypt_example.rs2
-rw-r--r--net/hlssink3/tests/hlssink3.rs6
-rw-r--r--video/cdg/tests/cdgdec.rs2
-rw-r--r--video/closedcaption/src/transcriberbin/imp.rs6
-rw-r--r--video/gtk4/examples/gtksink.rs2
6 files changed, 10 insertions, 10 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");
diff --git a/net/hlssink3/tests/hlssink3.rs b/net/hlssink3/tests/hlssink3.rs
index ea35bbbef..f9009d62a 100644
--- a/net/hlssink3/tests/hlssink3.rs
+++ b/net/hlssink3/tests/hlssink3.rs
@@ -105,7 +105,7 @@ fn test_hlssink3_element_with_video_content() -> Result<(), ()> {
const BUFFER_NB: i32 = 250;
- let pipeline = gst::Pipeline::builder().name("video_pipeline").build();
+ let pipeline = gst::Pipeline::with_name("video_pipeline");
let video_src = try_create_element!("videotestsrc");
video_src.set_property("is-live", true);
@@ -253,7 +253,7 @@ fn test_hlssink3_element_with_audio_content() -> Result<(), ()> {
const BUFFER_NB: i32 = 100;
- let pipeline = gst::Pipeline::builder().name("audio_pipeline").build();
+ let pipeline = gst::Pipeline::with_name("audio_pipeline");
let audio_src = try_create_element!("audiotestsrc");
audio_src.set_property("is-live", true);
@@ -316,7 +316,7 @@ fn test_hlssink3_write_correct_playlist_content() -> Result<(), ()> {
const BUFFER_NB: i32 = 50;
- let pipeline = gst::Pipeline::builder().name("video_pipeline").build();
+ let pipeline = gst::Pipeline::with_name("video_pipeline");
let video_src = try_create_element!("videotestsrc");
video_src.set_property("is-live", true);
diff --git a/video/cdg/tests/cdgdec.rs b/video/cdg/tests/cdgdec.rs
index a47599ca3..cb7f5e91b 100644
--- a/video/cdg/tests/cdgdec.rs
+++ b/video/cdg/tests/cdgdec.rs
@@ -25,7 +25,7 @@ fn init() {
fn test_cdgdec() {
init();
- let pipeline = gst::Pipeline::builder().name("cdgdec-test").build();
+ let pipeline = gst::Pipeline::with_name("cdgdec-test");
let input_path = {
let mut r = PathBuf::new();
diff --git a/video/closedcaption/src/transcriberbin/imp.rs b/video/closedcaption/src/transcriberbin/imp.rs
index 030129b90..f974ae8f6 100644
--- a/video/closedcaption/src/transcriberbin/imp.rs
+++ b/video/closedcaption/src/transcriberbin/imp.rs
@@ -126,7 +126,7 @@ pub struct TranscriberBin {
impl TranscriberBin {
fn construct_channel_bin(&self, lang: &str) -> Result<TranscriptionChannel, Error> {
- let bin = gst::Bin::new(None);
+ let bin = gst::Bin::new();
let queue = gst::ElementFactory::make("queue").build()?;
let textwrap = gst::ElementFactory::make("textwrap").build()?;
let tttocea608 = gst::ElementFactory::make("tttocea608").build()?;
@@ -719,8 +719,8 @@ impl TranscriberBin {
}
fn build_state(&self) -> Result<State, Error> {
- let internal_bin = gst::Bin::builder().name("internal").build();
- let transcription_bin = gst::Bin::builder().name("transcription-bin").build();
+ let internal_bin = gst::Bin::with_name("internal");
+ let transcription_bin = gst::Bin::with_name("transcription-bin");
let audio_tee = gst::ElementFactory::make("tee")
// Protect passthrough enable (and resulting dynamic reconfigure)
// from non-streaming thread
diff --git a/video/gtk4/examples/gtksink.rs b/video/gtk4/examples/gtksink.rs
index 3dddce252..77855af75 100644
--- a/video/gtk4/examples/gtksink.rs
+++ b/video/gtk4/examples/gtksink.rs
@@ -13,7 +13,7 @@ fn create_ui(app: &gtk::Application) {
let picture = gtk::Picture::new();
let label = gtk::Label::new(Some("Position: 00:00:00"));
- let pipeline = gst::Pipeline::new(None);
+ let pipeline = gst::Pipeline::new();
let overlay = gst::ElementFactory::make("clockoverlay")
.property("font-desc", "Monospace 42")