gstreamer/gst
Sebastian Dröge 6d423cbba2 audioresample: Drain the resampler and reset timestamp tracking on caps changes
Especially when changing the sample rate our timestamp tracking will be
completely off, but even otherwise we would usually lose the last few
samples if we don't drain here as the resampler gets reset if anything
but the sample rate changes.

This is usually not a problem as the first buffer after a caps event
usually has the discont flag set, but can cause problems if
 - the caps event is followed by a segment event, which then causes
   draining according to the new sample rate
 - the caps were changed because of rengotiation due to a reconfigure
   event and there is not discontinuity from upstream

In both cases we would output buffers with completely wrong timestamps.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/670>
2020-05-27 17:06:08 +00:00
..
adder adder: Use G_DECLARE_FINAL_TYPE 2020-03-16 15:47:58 +00:00
app Remove autotools build system 2019-10-13 14:15:43 +01:00
audioconvert audioconvert: Use G_DECLARE_FINAL_TYPE 2020-03-16 15:47:58 +00:00
audiomixer audiomixer: Use G_DECLARE_FINAL_TYPE 2020-03-16 15:47:58 +00:00
audiorate audiorate: Use G_DECLARE_FINAL_TYPE 2020-03-16 15:47:58 +00:00
audioresample audioresample: Drain the resampler and reset timestamp tracking on caps changes 2020-05-27 17:06:08 +00:00
audiotestsrc audiotestsrc: Fix the way we compute EOS in reverse playback 2020-05-25 08:19:02 +00:00
compositor compositor: Use G_DECLARE_FINAL_TYPE 2020-03-16 15:47:58 +00:00
encoding encoding: Use G_DECLARE_FINAL_TYPE 2020-03-16 15:47:58 +00:00
gio gio: Use G_DECLARE_FINAL_TYPE 2020-03-16 15:47:58 +00:00
overlaycomposition overlaycomposition: Use G_DECLARE_FINAL_TYPE 2020-03-16 15:47:58 +00:00
pbtypes Remove autotools build system 2019-10-13 14:15:43 +01:00
playback uridecodebin3: Activate suburi playback item 2020-04-10 07:26:49 +00:00
rawparse rawparse: Use G_DECLARE_FINAL_TYPE 2020-03-16 15:47:58 +00:00
subparse subparse: convert from pango-markup to utf8 .. 2020-03-27 15:27:06 +00:00
tcp tcpserversrc: Add stats property 2020-05-06 15:25:44 +03:00
typefind typefind: Consider MPEG-PS PSM to be a PES type 2020-04-10 22:47:04 +10:00
videoconvert videoconvert: Use G_DECLARE_FINAL_TYPE 2020-03-16 15:47:58 +00:00
videorate videorate: Fix buffer selection logic in reverse playback 2020-05-26 15:35:00 -04:00
videoscale videoscale: Use G_DECLARE_FINAL_TYPE 2020-03-16 15:47:58 +00:00
videotestsrc videotestsrc: Fix buffer duration in reverse playback 2020-05-06 16:50:01 +00:00
volume volume: Use G_DECLARE_FINAL_TYPE 2020-03-16 15:47:58 +00:00
meson.build compositor: add to build after move from -bad 2018-12-28 12:16:18 +01:00