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:
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>2023-10-25 13:32:30 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-11-10 17:02:17 +0300
commit34ce94932fa4a09ceee09e3ac40b82042a8f6dc1 (patch)
tree86d01ac2b76153d4cf1ab0109c66e73b4a4fa81c
parent7c2f05c271367c1e94c5c02bada8cd1a858a0873 (diff)
livesync: example: Add identities single-segment=1
These let us change the runtime offset of the test buffers via pad offsets without pushing new segments into livesync, which is necessary to demo the late-threshold behavior. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1388>
-rw-r--r--utils/livesync/examples/gtk_livesync.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/livesync/examples/gtk_livesync.rs b/utils/livesync/examples/gtk_livesync.rs
index 40e09cf6e..b0a77089b 100644
--- a/utils/livesync/examples/gtk_livesync.rs
+++ b/utils/livesync/examples/gtk_livesync.rs
@@ -35,6 +35,7 @@ fn create_pipeline() -> gst::Pipeline {
gst::parse_launch(
r#"videotestsrc name=vsrc is-live=1
! video/x-raw,framerate=60/1,width=800,height=600
+ ! identity single-segment=1
! timeoverlay text="Pre:"
! queue
! livesync latency=50000000
@@ -44,6 +45,7 @@ fn create_pipeline() -> gst::Pipeline {
! gtk4paintablesink name=vsink
audiotestsrc name=asrc is-live=1
! audio/x-raw,channels=2
+ ! identity single-segment=1
! queue
! livesync latency=50000000
! audiorate