gst-plugins-rs/utils/livesync
Sebastian Dröge 1a8a1dcf17 livesync: Use the actual output buffer duration of gap filler buffers
Otherwise the following can happen:

  - 25fps stream
  - buffer with PTS 0ms, duration 20ms arrives, is output
  - buffer with PTS 40ms, duration 20ms arrives
  - is considered early because 20ms < 40ms
  - filler buffer with PTS 20ms and 40ms duration is output
  - buffer with PTS 40ms is output

After this change no filler would be inserted because the gap is smaller
than the duration of a filler buffer.

Also, previously the 40ms duration would be used if a filler was
previously output because in that case the cached output buffer duration
would've already been patched from 20ms to 40ms.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1648>
2024-07-02 17:07:57 +01:00
..
examples use new debug and parse API 2023-12-04 15:58:21 +01:00
src livesync: Use the actual output buffer duration of gap filler buffers 2024-07-02 17:07:57 +01:00
tests livesync: Synchronize on the first buffer too 2024-06-28 17:31:34 +01:00
build.rs Add livesync plugin 2022-12-14 18:51:36 +02:00
Cargo.toml Update dependency versions for gtk-rs-core / gtk4-rs / gstreamer-rs and local crates 2024-02-08 19:40:08 +02:00
LICENSE-MPL-2.0 git: replace LICENSE file symlinks with copies 2023-04-04 14:26:37 +01:00