diff options
author | Guillaume Desmottes <guillaume.desmottes@onestream.live> | 2023-12-04 17:54:00 +0300 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@onestream.live> | 2023-12-04 17:58:21 +0300 |
commit | 6dfd1c1496ff710a806e4b0a5f30a83ab6b7fe40 (patch) | |
tree | e4ae83c2209dfd6f875e76130f44bc39adc207ad /utils | |
parent | c7f961cc2216f24e282ed81dbed9be7d29d5ecd0 (diff) |
use new debug and parse API
Changes from https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1355
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1403>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/fallbackswitch/examples/gtk_fallbackswitch.rs | 4 | ||||
-rw-r--r-- | utils/livesync/examples/gtk_livesync.rs | 2 | ||||
-rw-r--r-- | utils/tracers/src/pipeline_snapshot/imp.rs | 10 | ||||
-rw-r--r-- | utils/uriplaylistbin/examples/playlist.rs | 4 |
4 files changed, 8 insertions, 12 deletions
diff --git a/utils/fallbackswitch/examples/gtk_fallbackswitch.rs b/utils/fallbackswitch/examples/gtk_fallbackswitch.rs index da8865d98..ead6d9abe 100644 --- a/utils/fallbackswitch/examples/gtk_fallbackswitch.rs +++ b/utils/fallbackswitch/examples/gtk_fallbackswitch.rs @@ -22,10 +22,10 @@ const FALLBACK_PIPELINE: &str = "videotestsrc is-live=true pattern=snow"; fn create_pipeline() -> (gst::Pipeline, gst::Pad, gst::Element) { let pipeline = gst::Pipeline::default(); - let video_src = gst::parse_bin_from_description(MAIN_PIPELINE, true) + let video_src = gst::parse::bin_from_description(MAIN_PIPELINE, true) .unwrap() .upcast(); - let fallback_video_src = gst::parse_bin_from_description(FALLBACK_PIPELINE, true) + let fallback_video_src = gst::parse::bin_from_description(FALLBACK_PIPELINE, true) .unwrap() .upcast(); diff --git a/utils/livesync/examples/gtk_livesync.rs b/utils/livesync/examples/gtk_livesync.rs index b0a77089b..c30da7abc 100644 --- a/utils/livesync/examples/gtk_livesync.rs +++ b/utils/livesync/examples/gtk_livesync.rs @@ -32,7 +32,7 @@ impl Drop for DroppingProbe { } fn create_pipeline() -> gst::Pipeline { - gst::parse_launch( + gst::parse::launch( r#"videotestsrc name=vsrc is-live=1 ! video/x-raw,framerate=60/1,width=800,height=600 ! identity single-segment=1 diff --git a/utils/tracers/src/pipeline_snapshot/imp.rs b/utils/tracers/src/pipeline_snapshot/imp.rs index 9f80912aa..4dd75a473 100644 --- a/utils/tracers/src/pipeline_snapshot/imp.rs +++ b/utils/tracers/src/pipeline_snapshot/imp.rs @@ -211,17 +211,13 @@ impl PipelineSnapshot { let dump_name = format!("{}{}", settings.dot_prefix, pipeline.name()); if settings.dot_ts { - gst::debug_bin_to_dot_file_with_ts( - &pipeline, + pipeline.debug_to_dot_file_with_ts( gst::DebugGraphDetails::all(), &dump_name, ); } else { - gst::debug_bin_to_dot_file( - &pipeline, - gst::DebugGraphDetails::all(), - &dump_name, - ); + pipeline + .debug_to_dot_file(gst::DebugGraphDetails::all(), &dump_name); } } } diff --git a/utils/uriplaylistbin/examples/playlist.rs b/utils/uriplaylistbin/examples/playlist.rs index 3e293d3c4..a927648a3 100644 --- a/utils/uriplaylistbin/examples/playlist.rs +++ b/utils/uriplaylistbin/examples/playlist.rs @@ -43,13 +43,13 @@ fn create_pipeline(uris: Vec<String>, iterations: u32) -> anyhow::Result<gst::Pi let pad_name = src_pad.name(); let sink = if pad_name.starts_with("audio") { - gst::parse_bin_from_description( + gst::parse::bin_from_description( "queue ! audioconvert ! audioresample ! autoaudiosink", true, ) .unwrap() } else if pad_name.starts_with("video") { - gst::parse_bin_from_description("queue ! videoconvert ! autovideosink", true).unwrap() + gst::parse::bin_from_description("queue ! videoconvert ! autovideosink", true).unwrap() } else { unimplemented!(); }; |