mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 03:21:00 +00:00
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>
This commit is contained in:
parent
32d59c31d8
commit
8e93d294e5
6 changed files with 10 additions and 10 deletions
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue