gstreamer/gst-libs/gst/audio
Ratchanan Srirattanamet cc8f54468e audiobasesrc: always acquire if not acquired in _setcaps
audiobasesrc's setcaps contains an optimization that makes it not re-
acquire the ringbuffer if the caps have not changed. However, it doesn't
check if it has successfully acquired it or not. It's possible to have
the caps set but not having ringbuffer acquired if the previous attempt
to acquire fails.

This commit replaces the caps existence check with whether the
ringbuffer is acquired or not. There's no need to check for caps
existence because 1.) it's unlikely to be NULL if the ringbuffer is
acquired, and 2.) _setcaps shouldn't be called with a NULL caps.

This should also let the element retry on acquiring ringbuffer after an
error by re-setting the element's state to READY and back to PLAYING.
Whether this behavior is correct is up for debate.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/512>
2020-12-04 13:57:58 +00:00
..
audio-buffer.c audio-buffer: Don't fail to map buffers with zero samples 2019-11-14 14:47:44 +01:00
audio-buffer.h libs: audio: Implement GstAudioBuffer & GstAudioMeta 2018-07-03 14:06:43 +03:00
audio-channel-mixer.c libs: audio-channel-mixer: add support for non-interleaved audio buffers 2018-07-11 16:26:13 +03:00
audio-channel-mixer.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
audio-channels.c libs: Fix various Since markers 2019-04-23 12:28:26 +00:00
audio-channels.h Pass the code through codespell 2019-08-30 13:05:36 +00:00
audio-converter.c audio: Move fill_silence into audio_format_info 2020-11-25 19:18:25 +01:00
audio-converter.h Fix up and add various "Since" markers and other related docs fixes 2020-06-19 12:17:55 +03:00
audio-format.c audio: Move fill_silence into audio_format_info 2020-11-25 19:18:25 +01:00
audio-format.h audio: Move fill_silence into audio_format_info 2020-11-25 19:18:25 +01:00
audio-info.c audio-info: Allow from_caps() with encoded audio format 2019-10-25 12:32:03 +09:00
audio-info.h audio: add gst_audio_make_raw_caps() 2020-06-02 11:57:42 +00:00
audio-prelude.h libs: fix API export/import and 'inconsistent linkage' on MSVC 2018-09-24 08:45:34 +01:00
audio-quantize.c gst-libs: include config.h in all source files 2018-08-13 09:23:34 +01:00
audio-quantize.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
audio-resampler-macros.h audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-neon.h audio-resampler: Update NEON to handle remainders not multiples of 4 2019-09-02 23:25:39 -04:00
audio-resampler-private.h audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-x86-sse.c audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-x86-sse.h audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-x86-sse2.c audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-x86-sse2.h audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-x86-sse41.c audio-resampler: Fix integer overflow in clamping code 2017-01-30 12:35:04 +02:00
audio-resampler-x86-sse41.h audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-x86.h audiorsample: Fix build on 32-bit x86 2016-09-29 19:45:16 +05:30
audio-resampler.c Fix up and add various "Since" markers and other related docs fixes 2020-06-19 12:17:55 +03:00
audio-resampler.h Fix up and add various "Since" markers and other related docs fixes 2020-06-19 12:17:55 +03:00
audio.c libs: audio: add a new gst_audio_buffer_truncate() function 2018-07-12 12:08:10 +03:00
audio.h audio: use right export decorator 2018-08-26 11:16:10 +02:00
dbesi0.c audio-converter: add resampler 2016-03-28 13:13:59 +02:00
gstaudioaggregator.c audio: Move fill_silence into audio_format_info 2020-11-25 19:18:25 +01:00
gstaudioaggregator.h *aggregator: Add g_autoptr support for *ConvertPad 2020-03-16 15:47:58 +00:00
gstaudiobasesink.c audiobasesink: Handle an extra case of buffers being out of segment 2020-04-01 21:01:38 +00:00
gstaudiobasesink.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04:00
gstaudiobasesrc.c audiobasesrc: always acquire if not acquired in _setcaps 2020-12-04 13:57:58 +00:00
gstaudiobasesrc.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04:00
gstaudiocdsrc.c audio: Update for g_type_class_add_private() deprecation in recent GLib 2018-06-23 21:49:48 +02:00
gstaudiocdsrc.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04:00
gstaudioclock.c audioclock: Sink the reference in the constructor 2017-05-17 10:40:52 +03:00
gstaudioclock.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04:00
gstaudiodecoder.c audiodecoder: Move max_errors out of GstAudioDecoderContext 2020-11-27 14:49:10 +05:30
gstaudiodecoder.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04:00
gstaudioencoder.c audioencoder: Fix incorrect GST_LOG_OBJECT usage 2020-12-03 12:46:33 +00:00
gstaudioencoder.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04:00
gstaudiofilter.c audio: video: Fix in/outbuf confusion of transform_meta 2020-10-08 18:30:39 +02:00
gstaudiofilter.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04:00
gstaudioiec61937.c docs: Convert gtkdoc comments to markdown 2017-03-10 18:19:17 -03:00
gstaudioiec61937.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
gstaudiometa.c audiometa: fix g-i warning 2019-03-23 20:08:56 +00:00
gstaudiometa.h audiometa: fix docs typo 2019-01-06 00:48:56 +00:00
gstaudiopack-dist.c Update disted backup ORC files 2018-02-15 07:14:20 +01:00
gstaudiopack-dist.h audio: update ORC dist files 2015-11-06 17:54:21 +01:00
gstaudiopack.orc gstaudiopack.orc: pack_u32be_swap: actually swap 2018-02-15 01:32:54 +01:00
gstaudioringbuffer.c audio: Move fill_silence into audio_format_info 2020-11-25 19:18:25 +01:00
gstaudioringbuffer.h audiosink: expose more audioringbuffer vmethods to child sinks 2019-09-27 05:34:57 +00:00
gstaudiosink.c audio: Move fill_silence into audio_format_info 2020-11-25 19:18:25 +01:00
gstaudiosink.h audiosink: Keep baseclass extensible 2020-05-28 19:14:29 +09:00
gstaudiosrc.c audio: Move fill_silence into audio_format_info 2020-11-25 19:18:25 +01:00
gstaudiosrc.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04:00
gstaudiostreamalign.c Pass the code through codespell 2019-08-30 13:05:36 +00:00
gstaudiostreamalign.h audiostreamalign: Mark the whole type as new in 1.14 2018-03-15 09:58:11 +02:00
gstaudioutilsprivate.c audioutilsprivate: restore thread priority before ending 2020-07-18 13:00:00 +02:00
gstaudioutilsprivate.h audioutilsprivate: restore thread priority before ending 2020-07-18 13:00:00 +02:00
meson.build Meson: Use pkg-config generator 2020-10-23 11:19:11 -04:00
streamvolume.c docs: Convert gtkdoc comments to markdown 2017-03-10 18:19:17 -03:00
streamvolume.h streamvolume: Use G_DECLARE_INTERFACE 2020-03-20 06:20:43 +00:00
TODO gst-libs/gst/audio/TODO: Update TODO 2006-02-17 10:15:52 +00:00