diff options
author | François Laignel <francois@centricular.com> | 2023-02-25 20:30:26 +0300 |
---|---|---|
committer | François Laignel <francois@centricular.com> | 2023-05-12 13:55:31 +0300 |
commit | 8e93d294e5a61a94f14e812bef59cd0e529494e1 (patch) | |
tree | 44e430dd6a9f8eb76fee8a0403c62d92eeff6bb8 /video | |
parent | 32d59c31d8df826fca0615fa140b45b0ea7052fa (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 'video')
-rw-r--r-- | video/cdg/tests/cdgdec.rs | 2 | ||||
-rw-r--r-- | video/closedcaption/src/transcriberbin/imp.rs | 6 | ||||
-rw-r--r-- | video/gtk4/examples/gtksink.rs | 2 |
3 files changed, 5 insertions, 5 deletions
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: >k::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") |