From 42bdbbcb290fe28ea6481fcd3b8683ca3fe8e25d Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Wed, 4 Jan 2012 14:54:10 +0100 Subject: jack: Add the new layout field to the raw audio caps --- ext/jack/gstjackaudiosink.c | 2 ++ ext/jack/gstjackaudiosrc.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'ext/jack') diff --git a/ext/jack/gstjackaudiosink.c b/ext/jack/gstjackaudiosink.c index 1f1a8ac02..fe911840f 100644 --- a/ext/jack/gstjackaudiosink.c +++ b/ext/jack/gstjackaudiosink.c @@ -637,6 +637,7 @@ GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/x-raw, " "format = (string) " GST_JACK_FORMAT_STR ", " + "layout = (string) interleaved, " "rate = (int) [ 1, MAX ], " "channels = (int) [ 1, MAX ]") ); @@ -840,6 +841,7 @@ gst_jack_audio_sink_getcaps (GstBaseSink * bsink, GstCaps * filter) if (!sink->caps) { sink->caps = gst_caps_new_simple ("audio/x-raw", "format", G_TYPE_STRING, GST_JACK_FORMAT_STR, + "layout", G_TYPE_STRING, "interleaved", "rate", G_TYPE_INT, rate, "channels", GST_TYPE_INT_RANGE, min, max, NULL); } diff --git a/ext/jack/gstjackaudiosrc.c b/ext/jack/gstjackaudiosrc.c index 34d48ff53..4973a8b77 100644 --- a/ext/jack/gstjackaudiosrc.c +++ b/ext/jack/gstjackaudiosrc.c @@ -674,6 +674,7 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/x-raw, " "format = (string) " GST_JACK_FORMAT_STR ", " + "layout = (string) interleaved, " "rate = (int) [ 1, MAX ], " "channels = (int) [ 1, MAX ]") ); @@ -863,6 +864,7 @@ gst_jack_audio_src_getcaps (GstBaseSrc * bsrc, GstCaps * filter) if (!src->caps) { src->caps = gst_caps_new_simple ("audio/x-raw", "format", G_TYPE_STRING, GST_JACK_FORMAT_STR, + "layout", G_TYPE_STRING, "interleaved", "rate", G_TYPE_INT, rate, "channels", GST_TYPE_INT_RANGE, min, max, NULL); } -- cgit v1.2.3