Skip to content

Commit

Permalink
fix(pipeline): set skip-to-first=true on audiorate
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Feb 11, 2024
1 parent af05999 commit d6f0703
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,9 @@ fn make_pulsesrc_bin<'a>(device_names: impl IntoIterator<Item = &'a str>) -> Res
.property("provide-clock", false)
.property("do-timestamp", true)
.build()?;
let audiorate = gst::ElementFactory::make("audiorate").build()?;
let audiorate = gst::ElementFactory::make("audiorate")
.property("skip-to-first", true)
.build()?;

bin.add_many([&pulsesrc, &audiorate])?;
pulsesrc.link_filtered(&audiorate, &pulsesrc_caps)?;
Expand Down

0 comments on commit d6f0703

Please sign in to comment.