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