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/1369>
This commit is contained in:
Jan Alexander Steffens (heftig) 2023-10-25 12:32:30 +02:00
parent 6633cc4046
commit ee93448de7

View file

@ -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