summaryrefslogtreecommitdiff
path: root/gst/onvif
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2016-03-04 15:50:26 +0900
committerSebastian Dröge <sebastian@centricular.com>2016-03-24 14:56:51 +0200
commit8cdfb13658a069cf8c45a3265bf865849d3dc8e9 (patch)
tree93bc4a0be9c90b3e4d086328781411d9798933d8 /gst/onvif
parentc25782921324cb9ff7bfcc757257dfde05f95df3 (diff)
downloadgstreamer-plugins-bad-8cdfb13658a069cf8c45a3265bf865849d3dc8e9.tar.gz
bad: use new gst_element_class_add_static_pad_template()
https://bugzilla.gnome.org/show_bug.cgi?id=763081
Diffstat (limited to 'gst/onvif')
-rw-r--r--gst/onvif/gstrtponvifparse.c8
-rw-r--r--gst/onvif/gstrtponviftimestamp.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/gst/onvif/gstrtponvifparse.c b/gst/onvif/gstrtponvifparse.c
index f48ac0749..8ff4fa918 100644
--- a/gst/onvif/gstrtponvifparse.c
+++ b/gst/onvif/gstrtponvifparse.c
@@ -57,10 +57,10 @@ gst_rtp_onvif_parse_class_init (GstRtpOnvifParseClass * klass)
gstelement_class = GST_ELEMENT_CLASS (klass);
/* register pads */
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_template_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_template_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &sink_template_factory);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &src_template_factory);
gst_element_class_set_static_metadata (gstelement_class,
"ONVIF NTP timestamps RTP extension", "Effect/RTP",
diff --git a/gst/onvif/gstrtponviftimestamp.c b/gst/onvif/gstrtponviftimestamp.c
index 4abece191..6777f9fc1 100644
--- a/gst/onvif/gstrtponviftimestamp.c
+++ b/gst/onvif/gstrtponviftimestamp.c
@@ -257,10 +257,10 @@ gst_rtp_onvif_timestamp_class_init (GstRtpOnvifTimestampClass * klass)
DEFAULT_SET_E_BIT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/* register pads */
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_template_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_template_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &sink_template_factory);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &src_template_factory);
gst_element_class_set_static_metadata (gstelement_class,
"ONVIF NTP timestamps RTP extension", "Effect/RTP",