summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-01-04 15:45:43 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-01-05 10:37:04 +0100
commitf3fa53b299f06ec232108df0d50234d9f7a8c081 (patch)
treec986635dbc07d7616ff44bbf6e8778aa9371415a
parent52481b34f5c87a0aad8951f35b8b2b45995a31e1 (diff)
lamemp3enc: Update for the new raw audio caps
-rw-r--r--ext/lame/gstlamemp3enc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/lame/gstlamemp3enc.c b/ext/lame/gstlamemp3enc.c
index 282d9f69..09988737 100644
--- a/ext/lame/gstlamemp3enc.c
+++ b/ext/lame/gstlamemp3enc.c
@@ -81,13 +81,19 @@ GST_DEBUG_CATEGORY_STATIC (debug);
/* LAMEMP3ENC can do MPEG-1, MPEG-2, and MPEG-2.5, so it has 9 possible
* sample rates it supports */
static GstStaticPadTemplate gst_lamemp3enc_sink_template =
-GST_STATIC_PAD_TEMPLATE ("sink",
+ GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-raw, "
"format = (string) " GST_AUDIO_NE (S16) ", "
+ "layout = (string) interleaved, "
"rate = (int) { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000 }, "
- "channels = (int) [ 1, 2 ]")
+ "channels = (int) 1; "
+ "audio/x-raw, "
+ "format = (string) " GST_AUDIO_NE (S16) ", "
+ "layout = (string) interleaved, "
+ "rate = (int) { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000 }, "
+ "channels = (int) 2, " "channel-mask = (bitmask) 0x3")
);
static GstStaticPadTemplate gst_lamemp3enc_src_template =