diff options
author | Vineeth TM <vineeth.tm@samsung.com> | 2016-03-04 15:50:26 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-03-24 14:56:51 +0200 |
commit | 8cdfb13658a069cf8c45a3265bf865849d3dc8e9 (patch) | |
tree | 93bc4a0be9c90b3e4d086328781411d9798933d8 /gst/segmentclip | |
parent | c25782921324cb9ff7bfcc757257dfde05f95df3 (diff) | |
download | gstreamer-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/segmentclip')
-rw-r--r-- | gst/segmentclip/gstaudiosegmentclip.c | 6 | ||||
-rw-r--r-- | gst/segmentclip/gstvideosegmentclip.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/gst/segmentclip/gstaudiosegmentclip.c b/gst/segmentclip/gstaudiosegmentclip.c index 21fcd469d..434424a45 100644 --- a/gst/segmentclip/gstaudiosegmentclip.c +++ b/gst/segmentclip/gstaudiosegmentclip.c @@ -67,10 +67,8 @@ gst_audio_segment_clip_class_init (GstAudioSegmentClipClass * klass) "Clips audio buffers to the configured segment", "Sebastian Dröge <sebastian.droege@collabora.co.uk>"); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_pad_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_pad_template)); + gst_element_class_add_static_pad_template (element_class, &sink_pad_template); + gst_element_class_add_static_pad_template (element_class, &src_pad_template); } static void diff --git a/gst/segmentclip/gstvideosegmentclip.c b/gst/segmentclip/gstvideosegmentclip.c index 0b168e48e..34ba58b59 100644 --- a/gst/segmentclip/gstvideosegmentclip.c +++ b/gst/segmentclip/gstvideosegmentclip.c @@ -61,10 +61,8 @@ gst_video_segment_clip_class_init (GstVideoSegmentClipClass * klass) "Clips video buffers to the configured segment", "Sebastian Dröge <sebastian.droege@collabora.co.uk>"); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_pad_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_pad_template)); + gst_element_class_add_static_pad_template (element_class, &sink_pad_template); + gst_element_class_add_static_pad_template (element_class, &src_pad_template); segment_clip_klass->reset = GST_DEBUG_FUNCPTR (gst_video_segment_clip_reset); segment_clip_klass->set_caps = |