summaryrefslogtreecommitdiffstats
path: root/ext/gsm
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gsm')
-rw-r--r--ext/gsm/gstgsmdec.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/gsm/gstgsmdec.c b/ext/gsm/gstgsmdec.c
index bdf6d84c..a3d7ec05 100644
--- a/ext/gsm/gstgsmdec.c
+++ b/ext/gsm/gstgsmdec.c
@@ -103,14 +103,11 @@ static void
gst_gsmdec_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
- GstCaps *raw_caps, *gsm_caps;
gsmdec_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK,
- GST_PAD_ALWAYS,
- gsm_caps, NULL);
- gsmdec_src_template = gst_pad_template_new ("src", GST_PAD_SRC,
- GST_PAD_ALWAYS,
- raw_caps, NULL);
+ GST_PAD_ALWAYS, gsm_caps_factory(), NULL);
+ gsmdec_src_template = gst_pad_template_new ("src", GST_PAD_SRC,
+ GST_PAD_ALWAYS, raw_caps_factory(), NULL);
gst_element_class_add_pad_template (element_class, gsmdec_sink_template);
gst_element_class_add_pad_template (element_class, gsmdec_src_template);
gst_element_class_set_details (element_class, &gst_gsmdec_details);