From ee93448de796830233a4568fa7c2760e900bde94 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Wed, 25 Oct 2023 12:32:30 +0200 Subject: [PATCH] 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: --- utils/livesync/examples/gtk_livesync.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/livesync/examples/gtk_livesync.rs b/utils/livesync/examples/gtk_livesync.rs index 40e09cf6..b0a77089 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