diff options
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); |