gstreamer/subprojects/gst-plugins-base/tests/check/elements
Vivia Nikolaidou 60d9cfc954 videorate: Correct segment-based calculations
It was adding and subtracting the segment base here and there, but it
was also doing so incorrectly, leading to various calculation errors.

Fixed a few bugs uncovered, related to getting a new segment:
* If we reset base_ts/next_ts/out_frame_count, also reset prevbuf
* Only do so if the new segment is different than the previous one

Also replaced a few occurrences of GST_BUFFER_TIMESTAMP with
GST_BUFFER_PTS for consistency.

Integrated the tests of
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2186
, now passing. The test_segment_update_same test had to be fixed,
because it was wrongly assuming that we would not fill the gap inside
the new-but-same segment.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6031>
2024-02-08 12:08:08 +00:00
..
adder.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
appsink.c appsink: add max-time and max-buffers properties 2023-09-20 08:54:01 +00:00
appsrc.c tests: appsrc: Fix test on Windows 2023-12-02 01:57:48 +00:00
audioconvert.c audioconvert: Fix fallback to identity mixing matrix when setting an empty mix-matrix 2023-10-27 10:07:40 +00:00
audiointerleave.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
audiomixer.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
audiorate.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
audioresample.c Bump GLib requirement to >= 2.62 2022-06-10 06:01:41 +00:00
audiotestsrc.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
compositor.c tests: compositor: Fix race in buffer unref 2023-07-21 00:59:59 +09:00
decodebin.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
encodebin.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
glbin.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
glfilter.c ximagesink/xvimagesink: use GST_XINITTHREADS to ensure call to XInitThreads 2022-04-04 15:49:02 +08:00
glimagesink.c gl/bufferpool: add configuration to extend buffer lifetime before reuse 2023-08-31 01:24:38 +00:00
glmixer.c ximagesink/xvimagesink: use GST_XINITTHREADS to ensure call to XInitThreads 2022-04-04 15:49:02 +08:00
glstereo.c ximagesink/xvimagesink: use GST_XINITTHREADS to ensure call to XInitThreads 2022-04-04 15:49:02 +08:00
libvisual.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
multifdsink.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
multisocketsink.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
opus.c gst-plugins-base: re-indent with GNU indent 2.2.12 2023-03-17 03:18:53 +00:00
overlaycomposition.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
playbin-complex.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
playbin.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
playsink.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
rawaudioparse.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
rawvideoparse.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
streamsynchronizer.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
subparse.c samiparse: fix handling of self-closing tags 2022-07-01 17:24:52 +00:00
textoverlay.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
theoradec.c theoradec: make sure the selected pool accepts the new config 2023-05-12 14:37:06 +02:00
urisourcebin.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
videoconvert.c test: Update all video related tests because of adding DMA_DRM format 2023-07-19 09:57:50 +00:00
videorate.c videorate: Correct segment-based calculations 2024-02-08 12:08:08 +00:00
videoscale.c tests: videoscale: Skip passthrough caps 2023-10-03 21:13:00 +00:00
videotestsrc.c gst-plugins-base: re-indent with GNU indent 2.2.12 2023-03-17 03:18:53 +00:00
volume.c volume: support arbitrarily-large positive gains 2023-08-07 13:17:45 +00:00
vorbisdec.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00
vorbistag.c Move files from gst-plugins-base into the "subprojects/gst-plugins-base/" subdir 2021-09-24 16:13:26 -03:00