summaryrefslogtreecommitdiffstats
path: root/ext/gsm
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gsm')
-rw-r--r--ext/gsm/gstgsmdec.c6
-rw-r--r--ext/gsm/gstgsmenc.c6
2 files changed, 4 insertions, 8 deletions
diff --git a/ext/gsm/gstgsmdec.c b/ext/gsm/gstgsmdec.c
index 412aaf68..c20c72a8 100644
--- a/ext/gsm/gstgsmdec.c
+++ b/ext/gsm/gstgsmdec.c
@@ -139,16 +139,14 @@ gst_gsmdec_init (GstGSMDec * gsmdec)
{
/* create the sink and src pads */
gsmdec->sinkpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gsmdec_sink_template), "sink");
+ gst_pad_new_from_static_template (&gsmdec_sink_template, "sink");
gst_pad_set_setcaps_function (gsmdec->sinkpad, gst_gsmdec_sink_setcaps);
gst_pad_set_event_function (gsmdec->sinkpad, gst_gsmdec_sink_event);
gst_pad_set_chain_function (gsmdec->sinkpad, gst_gsmdec_chain);
gst_element_add_pad (GST_ELEMENT (gsmdec), gsmdec->sinkpad);
gsmdec->srcpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gsmdec_src_template), "src");
+ gst_pad_new_from_static_template (&gsmdec_src_template, "src");
gst_element_add_pad (GST_ELEMENT (gsmdec), gsmdec->srcpad);
gsmdec->state = gsm_create ();
diff --git a/ext/gsm/gstgsmenc.c b/ext/gsm/gstgsmenc.c
index 47636f99..ffd629a1 100644
--- a/ext/gsm/gstgsmenc.c
+++ b/ext/gsm/gstgsmenc.c
@@ -137,15 +137,13 @@ gst_gsmenc_init (GstGSMEnc * gsmenc)
/* create the sink and src pads */
gsmenc->sinkpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gsmenc_sink_template), "sink");
+ gst_pad_new_from_static_template (&gsmenc_sink_template, "sink");
gst_pad_set_chain_function (gsmenc->sinkpad, gst_gsmenc_chain);
gst_pad_set_setcaps_function (gsmenc->sinkpad, gst_gsmenc_setcaps);
gst_element_add_pad (GST_ELEMENT (gsmenc), gsmenc->sinkpad);
gsmenc->srcpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gsmenc_src_template), "src");
+ gst_pad_new_from_static_template (&gsmenc_src_template, "src");
gst_element_add_pad (GST_ELEMENT (gsmenc), gsmenc->srcpad);
gsmenc->state = gsm_create ();