gstreamer/gst-libs/gst/audio
Mathieu Duponchelle bced52d2e8 audioaggregator: always use downstream's rate requirements
We were previously only fixating the rate in the getcaps
implementation when downstream was requiring a discrete value,
causing negotiation to fail when upstream was capable of rate
conversion, but not made aware that it had to occur.

Instead of fixating the rate, we can simply update our sink
template caps with whatever GValue the downstream caps are holding
as their rate field.

Allows negotiation to successfully complete with pipelines such as:

audiotestsrc ! audio/x-raw, rate=48000 ! audioresample ! audiomixer name=m ! \
audio/x-raw, rate={800, 1000} ! autoaudiosink \
audiotestsrc ! audio/x-raw, rate=44100 ! audioresample ! m.
2019-07-18 08:43:14 +03:00
..
.gitignore Update .gitignore 2012-08-08 09:06:30 +01:00
audio-buffer.c audio-buffer: fix typo in assignment that causes buggy behavior 2018-07-24 15:09:25 +03: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 audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
audio-converter.c doc: Fix some gtk-doc comments 2019-05-13 11:34:08 -04:00
audio-converter.h doc: Fix some gtk-doc comments 2019-05-13 11:34:08 -04:00
audio-format.c audio: const gpointer is not the same as gconstpointer/const void * 2018-11-05 08:16:16 +00:00
audio-format.h audio: const gpointer is not the same as gconstpointer/const void * 2018-11-05 08:16:16 +00:00
audio-info.c audio: fix some GIR annotations 2018-04-23 19:33:19 +02:00
audio-info.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04: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 audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
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 libs: audio-resampler: add support for consuming non-interleaved input buffers 2018-07-11 16:26:13 +03:00
audio-resampler.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00: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 audioaggregator: always use downstream's rate requirements 2019-07-18 08:43:14 +03:00
gstaudioaggregator.h audioaggregator: Add Since: 1.14 markers to all public structs 2019-04-23 12:28:26 +00:00
gstaudiobasesink.c audiobasesink: Remove dead assignment 2018-12-17 12:21:01 +01:00
gstaudiobasesink.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04:00
gstaudiobasesrc.c audiobasesrc: Round down segsize to an integer number of samples 2018-06-29 07:38:20 +02: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: Fix leak on failed audio gaps 2019-06-26 03:51:03 -04:00
gstaudiodecoder.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04:00
gstaudioencoder.c audio: Update for g_type_class_add_private() deprecation in recent GLib 2018-06-23 21:49:48 +02:00
gstaudioencoder.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04:00
gstaudiofilter.c docs: Convert gtkdoc comments to markdown 2017-03-10 18:19:17 -03: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 audioringbuffer: Fix wrong memcpy address when reordering channels 2019-01-29 14:49:19 +00:00
gstaudioringbuffer.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04:00
gstaudiosink.c gstaudiosrc/sink: Set audio ringbuffer thread priority 2018-09-11 00:41:59 +05:30
gstaudiosink.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04:00
gstaudiosrc.c gstaudiosrc/sink: Set audio ringbuffer thread priority 2018-09-11 00:41:59 +05:30
gstaudiosrc.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally 2019-06-04 20:31:09 -04:00
gstaudiostreamalign.c libs: Documentation cleanup 2018-04-02 08:53:28 +02:00
gstaudiostreamalign.h audiostreamalign: Mark the whole type as new in 1.14 2018-03-15 09:58:11 +02:00
gstaudioutilsprivate.c gstaudioutilsprivate: Fix warnings while setting thread priority 2018-09-24 19:44:28 +05:30
gstaudioutilsprivate.h gstaudioutilsprivate: Fix warnings while setting thread priority 2018-09-24 19:44:28 +05:30
Makefile.am libs: fix API export/import and 'inconsistent linkage' on MSVC 2018-09-24 08:45:34 +01:00
meson.build meson: Add variables for gir files 2019-05-13 10:19:22 -04:00
streamvolume.c docs: Convert gtkdoc comments to markdown 2017-03-10 18:19:17 -03:00
streamvolume.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
TODO gst-libs/gst/audio/TODO: Update TODO 2006-02-17 10:15:52 +00:00