Skip to content
Snippets Groups Projects

livesync improvements

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -864,7+864,7 @@
buf_duration - calc_duration
};
let sample_duration = gst::ClockTime::SECOND
.mul_div_round(1, audio_info.rate().into())
.unwrap();
@@ -964,7+964,7 @@
state.queue.push_back(Item::Buffer(buffer, lateness));
state.buffer_queued = true;
state.in_timestamp = timestamp;
state.num_in += 1;
self.cond.notify_all();
Ok(gst::FlowSuccess::Ok)
@@ -1132,6 +1131,8 @@ impl LiveSync {
match in_buffer {
Some((buffer, lateness)) => {
state.num_in += 1;
state.out_buffer = Some(buffer);
state.out_timestamp = state.in_timestamp;
Loading