blob: caa080c8e76e0216fed39968f80c5b30f8bb5cbf [file] [log] [blame]
Brad Bishop15ae2502019-06-18 21:44:24 -04001From aadfa5f20f53601785e417fe3fcbe6d574880988 Mon Sep 17 00:00:00 2001
2From: Philippe Normand <philn@igalia.com>
3Date: Tue, 23 Apr 2019 10:10:01 +0100
4Subject: [PATCH] scaletempo: Advertise interleaved layout in caps templates
5
6Scaletempo doesn't support non-interleaved layout. Not explicitely stating this
7would trigger critical warnings and a caps negotiation failure when scaletempo
8is used as playbin audio-filter.
9
10Patch suggested by George Kiagiadakis <george.kiagiadakis@collabora.com>.
11
12Fixes #591
13Upstream-Status: Backport [merged, on track for 1.16.1.]
14---
15 gst/audiofx/gstscaletempo.c | 6 +++---
16 1 file changed, 3 insertions(+), 3 deletions(-)
17
18diff --git a/gst/audiofx/gstscaletempo.c b/gst/audiofx/gstscaletempo.c
19index 3a719719a..83ee8fe24 100644
20--- a/gst/audiofx/gstscaletempo.c
21+++ b/gst/audiofx/gstscaletempo.c
22@@ -93,9 +93,9 @@ enum
23
24 #define SUPPORTED_CAPS \
25 GST_STATIC_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" \
32 )
33
34 static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
35--
362.20.1
37