summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dxr3/dxr3spusink.c4
-rw-r--r--sys/dxr3/dxr3videosink.c4
-rw-r--r--sys/qcam/gstqcamsrc.c3
3 files changed, 3 insertions, 8 deletions
diff --git a/sys/dxr3/dxr3spusink.c b/sys/dxr3/dxr3spusink.c
index 1a9cde66..0b220f8c 100644
--- a/sys/dxr3/dxr3spusink.c
+++ b/sys/dxr3/dxr3spusink.c
@@ -201,9 +201,7 @@ dxr3spusink_init (Dxr3SpuSink * sink)
{
GstPad *pad;
- pad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&dxr3spusink_sink_factory), "sink");
+ pad = gst_pad_new_from_static_template (&dxr3spusink_sink_factory, "sink");
gst_element_add_pad (GST_ELEMENT (sink), pad);
gst_pad_set_chain_function (pad, dxr3spusink_chain);
diff --git a/sys/dxr3/dxr3videosink.c b/sys/dxr3/dxr3videosink.c
index 39a8e24e..475cfbdd 100644
--- a/sys/dxr3/dxr3videosink.c
+++ b/sys/dxr3/dxr3videosink.c
@@ -198,9 +198,7 @@ dxr3videosink_init (Dxr3VideoSink * sink)
{
GstPad *pad;
- pad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&dxr3videosink_sink_factory), "sink");
+ pad = gst_pad_new_from_static_template (&dxr3videosink_sink_factory, "sink");
gst_element_add_pad (GST_ELEMENT (sink), pad);
gst_pad_set_chain_function (pad, dxr3videosink_chain);
diff --git a/sys/qcam/gstqcamsrc.c b/sys/qcam/gstqcamsrc.c
index fc633d86..e757b6c8 100644
--- a/sys/qcam/gstqcamsrc.c
+++ b/sys/qcam/gstqcamsrc.c
@@ -213,8 +213,7 @@ static void
gst_qcamsrc_init (GstQCamSrc * qcamsrc)
{
qcamsrc->srcpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_qcamsrc_src_factory), "src");
+ gst_pad_new_from_static_template (&gst_qcamsrc_src_factory, "src");
gst_element_add_pad (GST_ELEMENT (qcamsrc), qcamsrc->srcpad);
gst_pad_set_get_function (qcamsrc->srcpad, gst_qcamsrc_get);