summaryrefslogtreecommitdiff
path: root/ext/sbc/gstsbcdec.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-02-19 19:49:24 +0000
committerTim-Philipp Müller <tim@centricular.net>2013-03-27 22:21:16 +0000
commit834a9b193b8306b27aa74dbe6e1ac0b211765e4f (patch)
tree8b4e369c2a97657272bf45ab66acb61f99a44769 /ext/sbc/gstsbcdec.c
parentccf5d9ea7e3a676723174934a33c7bb7fd4168b2 (diff)
downloadgstreamer-plugins-bad-834a9b193b8306b27aa74dbe6e1ac0b211765e4f.tar.gz
sbc: Update gstreamer plugin to use new sbc API.
Diffstat (limited to 'ext/sbc/gstsbcdec.c')
-rw-r--r--ext/sbc/gstsbcdec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/sbc/gstsbcdec.c b/ext/sbc/gstsbcdec.c
index b4e7d6d0c..bcdaab789 100644
--- a/ext/sbc/gstsbcdec.c
+++ b/ext/sbc/gstsbcdec.c
@@ -96,8 +96,10 @@ sbc_dec_chain (GstPad * pad, GstBuffer * buffer)
/* we will reuse the same caps object */
if (dec->outcaps == NULL) {
caps = gst_caps_new_simple ("audio/x-raw-int",
- "rate", G_TYPE_INT, dec->sbc.rate,
- "channels", G_TYPE_INT, dec->sbc.channels, NULL);
+ "rate", G_TYPE_INT,
+ gst_sbc_parse_rate_from_sbc (dec->sbc.frequency),
+ "channels", G_TYPE_INT,
+ gst_sbc_get_channel_number (dec->sbc.mode), NULL);
template = gst_static_pad_template_get (&sbc_dec_src_factory);