Skip to content

Commit d6f0703

Browse files
committed
fix(pipeline): set skip-to-first=true on audiorate
1 parent af05999 commit d6f0703

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pipeline.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,9 @@ fn make_pulsesrc_bin<'a>(device_names: impl IntoIterator<Item = &'a str>) -> Res
350350
.property("provide-clock", false)
351351
.property("do-timestamp", true)
352352
.build()?;
353-
let audiorate = gst::ElementFactory::make("audiorate").build()?;
353+
let audiorate = gst::ElementFactory::make("audiorate")
354+
.property("skip-to-first", true)
355+
.build()?;
354356

355357
bin.add_many([&pulsesrc, &audiorate])?;
356358
pulsesrc.link_filtered(&audiorate, &pulsesrc_caps)?;

0 commit comments

Comments
 (0)