gstreamer/subprojects/gst-plugins-base/gst-libs/gst/audio
Sebastian Dröge 8ea355e52c audioringbuffer: Avoid overflows of segment done counter
This counter is incremented once for every segment, meaning it would
e.g. overflow after 24 days when using 1ms segments. Once that happens,
completely wrong positions are reported and invalid memory is handed out
for writing/reading the next segments.

As the affected variables are unfortunately part of the public API of
the struct, a second set of variables is added together with accessor
functions and both variables are kept in sync for backwards
compatibility.

All existing users of the two variables are moved to the new ones but
external code might still run into the overflow.

This also slightly breaks API as external code updating the variables
will have no effect anymore but the only known user of this is
pulsesink.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6740>
2024-05-16 06:52:58 +00:00
..
audio-buffer.c libs: audio: drop use of GSlice 2023-01-24 15:25:06 +00:00
audio-buffer.h
audio-channel-mixer.c audioconvert: Support converting >64 channels 2024-05-12 07:06:32 +00:00
audio-channel-mixer.h
audio-channels.c audioconvert: Support converting >64 channels 2024-05-12 07:06:32 +00:00
audio-channels.h
audio-converter.c libs: audio: drop use of GSlice 2023-01-24 15:25:06 +00:00
audio-converter.h audioconvert: Add dithering-threshold property 2022-02-25 19:32:28 +00:00
audio-format.c format: Allow GST_AUDIO/VIDEO_FORMAT_UNKNOWN in _to_string() function 2024-04-17 01:19:58 +00:00
audio-format.h format: Allow GST_AUDIO/VIDEO_FORMAT_UNKNOWN in _to_string() function 2024-04-17 01:19:58 +00:00
audio-info.c libs: audio: drop use of GSlice 2023-01-24 15:25:06 +00:00
audio-info.h VideoInfo, AudioInfo: fix usage with python bindings 2022-01-27 08:36:46 +00:00
audio-prelude.h
audio-quantize.c libs: audio: drop use of GSlice 2023-01-24 15:25:06 +00:00
audio-quantize.h
audio-resampler-macros.h
audio-resampler-neon.h
audio-resampler-private.h
audio-resampler-x86-sse.c
audio-resampler-x86-sse.h
audio-resampler-x86-sse2.c
audio-resampler-x86-sse2.h
audio-resampler-x86-sse41.c
audio-resampler-x86-sse41.h
audio-resampler-x86.h
audio-resampler.c video-scaler, audio-resampler: downgrade 'can't find exact taps' to debug 2023-09-20 16:31:47 +00:00
audio-resampler.h
audio.c audio: Add/fix various annotations 2022-10-18 08:56:58 +00:00
audio.h dsd: Add code for DSD audio support 2023-06-23 01:27:03 +00:00
dbesi0.c
gstaudioaggregator.c audioaggregator: Sync property values to output timestamp 2024-01-13 06:48:44 +00:00
gstaudioaggregator.h
gstaudiobasesink.c audioringbuffer: Avoid overflows of segment done counter 2024-05-16 06:52:58 +00:00
gstaudiobasesink.h
gstaudiobasesrc.c audioringbuffer: Avoid overflows of segment done counter 2024-05-16 06:52:58 +00:00
gstaudiobasesrc.h
gstaudiocdsrc.c Replace gst-i18n-*.h with gi18n-lib.h 2022-04-19 18:01:06 +00:00
gstaudiocdsrc.h
gstaudioclock.c
gstaudioclock.h
gstaudiodecoder.c audiodecoder: propagate resync flag 2023-11-10 21:45:13 +00:00
gstaudiodecoder.h audiodecoder: Make data processing errors non-fatal by default 2022-11-30 10:27:50 +00:00
gstaudioencoder.c audioencoder: Avoid wrapping temporarily mapped memory with a GstBuffer and passing that to subclass 2024-03-11 18:18:01 +00:00
gstaudioencoder.h
gstaudiofilter.c audioconvert, audioresample, audiofilter: fix divide by 0 for input buffer without caps 2022-11-26 08:47:49 +00:00
gstaudiofilter.h
gstaudioiec61937.c
gstaudioiec61937.h
gstaudiometa.c meta: Add API to register metas in two steps 2023-12-19 22:41:31 +00:00
gstaudiometa.h meta: Add serialize/deserialize API 2023-12-17 16:13:26 +00:00
gstaudiopack-dist.c
gstaudiopack-dist.h
gstaudiopack.orc
gstaudioringbuffer.c audioringbuffer: Avoid overflows of segment done counter 2024-05-16 06:52:58 +00:00
gstaudioringbuffer.h audioringbuffer: Avoid overflows of segment done counter 2024-05-16 06:52:58 +00:00
gstaudiosink.c audiosink: Add support for DSD data 2023-06-23 01:27:04 +00:00
gstaudiosink.h gst-plugins-base: Fix several annotations 2022-03-16 10:37:44 +00:00
gstaudiosrc.c
gstaudiosrc.h gst-plugins-base: Fix several annotations 2022-03-16 10:37:44 +00:00
gstaudiostreamalign.c audio: Consider the expected timestamp for discont-wait handling 2023-12-17 12:01:27 +00:00
gstaudiostreamalign.h
gstaudioutilsprivate.c audioenc/dec: Avoid adding temporary structure 2023-01-04 11:09:31 +00:00
gstaudioutilsprivate.h
gstdsd.c dsd: Fix documentation parameters 2023-07-11 05:17:55 +00:00
gstdsd.h dsd: Fix documentation parameters 2023-07-11 05:17:55 +00:00
gstdsdformat.c dsd: Fix documentation parameters 2023-07-11 05:17:55 +00:00
gstdsdformat.h audio: Change value of GST_DSD_FORMAT_UNKNOWN to 0 2023-07-05 12:08:33 +00:00
meson.build dsd: Add code for DSD audio support 2023-06-23 01:27:03 +00:00
streamvolume.c
streamvolume.h
TODO