summaryrefslogtreecommitdiff
path: root/ext/sbc/gstsbcdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sbc/gstsbcdec.c')
-rw-r--r--ext/sbc/gstsbcdec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/sbc/gstsbcdec.c b/ext/sbc/gstsbcdec.c
index 086fe1fc0..5019e8326 100644
--- a/ext/sbc/gstsbcdec.c
+++ b/ext/sbc/gstsbcdec.c
@@ -165,7 +165,8 @@ gst_sbc_dec_set_format (GstAudioDecoder * audio_dec, GstCaps * caps)
} else if (strcmp (channel_mode, "stereo") == 0) {
dec->frame_len = 4 + (subbands * 2) / 2 + ((blocks * bitpool) + 7) / 8;
} else if (strcmp (channel_mode, "joint") == 0) {
- dec->frame_len = 4 + (subbands * 2) / 2 + ((subbands + blocks * bitpool) + 7) / 8;
+ dec->frame_len =
+ 4 + (subbands * 2) / 2 + ((subbands + blocks * bitpool) + 7) / 8;
} else {
return FALSE;
}
@@ -219,11 +220,10 @@ gst_sbc_dec_class_init (GstSbcDecClass * klass)
audio_decoder_class->handle_frame =
GST_DEBUG_FUNCPTR (gst_sbc_dec_handle_frame);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sbc_dec_sink_factory));
-
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sbc_dec_src_factory));
+ gst_element_class_add_static_pad_template (element_class,
+ &sbc_dec_sink_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &sbc_dec_src_factory);
gst_element_class_set_static_metadata (element_class,
"Bluetooth SBC audio decoder", "Codec/Decoder/Audio",