diff options
| author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-02-19 19:49:24 +0000 | 
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-02-19 19:49:24 +0000 | 
| commit | a8b3b548ec9870df10709a839ed4c07e6d8eb76d (patch) | |
| tree | 2f94e2f9d6e6878165c5cb6fec57ebd13bad4d4c /audio/gstsbcdec.c | |
| parent | 23a5ed9f697a1e42a0d36c72dd9a297792c61082 (diff) | |
Update gstreamer plugin to use new sbc API.
Diffstat (limited to 'audio/gstsbcdec.c')
| -rw-r--r-- | audio/gstsbcdec.c | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/audio/gstsbcdec.c b/audio/gstsbcdec.c index d6777117..43a40f44 100644 --- a/audio/gstsbcdec.c +++ b/audio/gstsbcdec.c @@ -99,8 +99,12 @@ static GstFlowReturn 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, +					"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); | 
