1 From aadfa5f20f53601785e417fe3fcbe6d574880988 Mon Sep 17 00:00:00 2001
2 From: Philippe Normand <philn@igalia.com>
3 Date: Tue, 23 Apr 2019 10:10:01 +0100
4 Subject: [PATCH] scaletempo: Advertise interleaved layout in caps templates
6 Scaletempo doesn't support non-interleaved layout. Not explicitely stating this
7 would trigger critical warnings and a caps negotiation failure when scaletempo
8 is used as playbin audio-filter.
10 Patch suggested by George Kiagiadakis <george.kiagiadakis@collabora.com>.
13 Upstream-Status: Backport [merged, on track for 1.16.1.]
15 gst/audiofx/gstscaletempo.c | 6 +++---
16 1 file changed, 3 insertions(+), 3 deletions(-)
18 diff --git a/gst/audiofx/gstscaletempo.c b/gst/audiofx/gstscaletempo.c
19 index 3a719719a..83ee8fe24 100644
20 --- a/gst/audiofx/gstscaletempo.c
21 +++ b/gst/audiofx/gstscaletempo.c
22 @@ -93,9 +93,9 @@ enum
24 #define SUPPORTED_CAPS \
26 - GST_AUDIO_CAPS_MAKE (GST_AUDIO_NE (F32)) "; " \
27 - GST_AUDIO_CAPS_MAKE (GST_AUDIO_NE (F64)) "; " \
28 - GST_AUDIO_CAPS_MAKE (GST_AUDIO_NE (S16)) \
29 + GST_AUDIO_CAPS_MAKE (GST_AUDIO_NE (F32)) ", layout=(string)interleaved; " \
30 + GST_AUDIO_CAPS_MAKE (GST_AUDIO_NE (F64)) ", layout=(string)interleaved; " \
31 + GST_AUDIO_CAPS_MAKE (GST_AUDIO_NE (S16)) ", layout=(string)interleaved" \
34 static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",