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:
authorGuillaume Desmottes <guillaume.desmottes@onestream.live>2023-01-27 14:09:50 +0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2023-04-04 11:24:55 +0300
commit138c318be691a9b2d1d0e91f112b1dc4bdc5ad48 (patch)
treed4c50f79775e045334dac2fa397dcce649b9c297 /utils/uriplaylistbin
parent8576af247b8a816377f5f7d43407023dee9ca038 (diff)
uriplaylistbin: example: add queues
Prevent pipeline starvation with some media such as https://assets.onestream.live/studio/Videos/1080p/osl-interval-1080p-8.mp4 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1064>
Diffstat (limited to 'utils/uriplaylistbin')
-rw-r--r--utils/uriplaylistbin/examples/playlist.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/uriplaylistbin/examples/playlist.rs b/utils/uriplaylistbin/examples/playlist.rs
index 804fdc732..94116d168 100644
--- a/utils/uriplaylistbin/examples/playlist.rs
+++ b/utils/uriplaylistbin/examples/playlist.rs
@@ -44,10 +44,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("audioconvert ! audioresample ! autoaudiosink", true)
- .unwrap()
+ gst::parse_bin_from_description(
+ "queue ! audioconvert ! audioresample ! autoaudiosink",
+ true,
+ )
+ .unwrap()
} else if pad_name.starts_with("video") {
- gst::parse_bin_from_description("videoconvert ! autovideosink", true).unwrap()
+ gst::parse_bin_from_description("queue ! videoconvert ! autovideosink", true).unwrap()
} else {
unimplemented!();
};