gstreamer/gst
Thibault Saunier b46718b1a0 audiotestsrc: Fix the way we compute EOS in reverse playback
In reverse playback we were not taking into account the current buffer
samples to check if we had reached EOS which was leading to a buffer
with PTS = CLOCK_TIME_NONE containing too many frames followed by a
useless buffer with pts=0 duration=0, and a g_critical issue in
gst_object_sync_values.

Also add a validate based test case.
Without that patch this is how the expectation fails:

``` diff
--- log-asink-sink-expected       2020-05-22 23:22:42.654384579 -0400
+++ log-asink-sink-actual  2020-05-22 23:29:35.671586380 -0400
@@ -27,5 +27,6 @@
 buffer: pts=0:00:00.058820861, due=0:00:00.023219955, flags=discont
 buffer: pts=0:00:00.035600907, due=0:00:00.023219954, flags=discont
 buffer: pts=0:00:00.012380952, due=0:00:00.023219955, flags=discont
-buffer: pts=0:00:00.000000000, due=0:00:00.012380952, flags=discont
+buffer: due=0:00:00.012380953, flags=discont
+buffer: pts=0:00:00.000000000, flags=discont
 event eos: (no structure)
 ```

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/667>
2020-05-25 08:19:02 +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: Use G_DECLARE_FINAL_TYPE 2020-03-16 15:47:58 +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 timestamp underflow in reverse playback 2020-05-06 16:50:01 +00: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