gstreamer/tests/check
Sebastian Dröge 71e46bcf38 audioaggregator: Resync on the next buffer when dropping a buffer on discont resyncing
If a buffer is dropped during resyncing on a discont because either its
end offset is already before the current output offset of the
aggregator or because it fully overlaps with the part of the current
output buffer that was already filled, then don't just assume that the
next buffer is going to start at exactly the expected offset. It might
still require some more dropping of samples.

This caused the input to be mixed with an offset to its actual position
in the output stream, causing additional latency and wrong
synchronization between the different input streams.

Instead consider each buffer after a discont as a discont until the
aggregator actually resynced and starts mixing samples from the input
again.

Also update the start output offset of a new input buffer if samples
have to be dropped at the beginning. Otherwise it might be mixed too
early into the output and overwrite part of the output buffer that
already took samples from this input into account.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/912
which is a regression introduced by https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1180/

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1224>
2021-07-12 09:42:39 +03:00
..
elements audioaggregator: Resync on the next buffer when dropping a buffer on discont resyncing 2021-07-12 09:42:39 +03:00
generic Remove autotools build system 2019-10-13 14:15:43 +01:00
gst Remove autotools build system 2019-10-13 14:15:43 +01:00
libs videodecoder: add API to receive subframes 2021-07-08 13:19:21 +02:00
pipelines Use gst_element_request_pad_simple... 2021-05-05 11:55:54 +03:00
gst-plugins-base.supp tests: fix up valgrind suppressions for glibc getaddrinfo leaks 2019-09-08 01:52:36 +01:00
meson.build tests: use the real name of the videoscale test in GST_REGISTRY 2021-05-14 23:24:20 +01:00