summaryrefslogtreecommitdiff
path: root/gst/camerabin2
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/camerabin2
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/camerabin2')
-rw-r--r--gst/camerabin2/gstdigitalzoom.c6
-rw-r--r--gst/camerabin2/gstviewfinderbin.c3
-rw-r--r--gst/camerabin2/gstwrappercamerabinsrc.c11
3 files changed, 8 insertions, 12 deletions
diff --git a/gst/camerabin2/gstdigitalzoom.c b/gst/camerabin2/gstdigitalzoom.c
index 20c01be3c..b936fe455 100644
--- a/gst/camerabin2/gstdigitalzoom.c
+++ b/gst/camerabin2/gstdigitalzoom.c
@@ -376,10 +376,8 @@ gst_digital_zoom_class_init (GstDigitalZoomClass * klass)
GST_DEBUG_CATEGORY_INIT (digital_zoom_debug, "digitalzoom",
0, "digital zoom");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_template));
+ gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class, &src_template);
gst_element_class_set_static_metadata (gstelement_class,
"Digital zoom bin", "Generic/Video",
diff --git a/gst/camerabin2/gstviewfinderbin.c b/gst/camerabin2/gstviewfinderbin.c
index 3ae6c3187..7ff7bd509 100644
--- a/gst/camerabin2/gstviewfinderbin.c
+++ b/gst/camerabin2/gstviewfinderbin.c
@@ -122,8 +122,7 @@ gst_viewfinder_bin_class_init (GstViewfinderBinClass * klass)
DEFAULT_DISABLE_CONVERTERS,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (element_class, &sink_template);
gst_element_class_set_static_metadata (element_class, "Viewfinder Bin",
"Sink/Video", "Viewfinder Bin used in camerabin2",
diff --git a/gst/camerabin2/gstwrappercamerabinsrc.c b/gst/camerabin2/gstwrappercamerabinsrc.c
index 7796107da..4c2d8ec12 100644
--- a/gst/camerabin2/gstwrappercamerabinsrc.c
+++ b/gst/camerabin2/gstwrappercamerabinsrc.c
@@ -1123,14 +1123,13 @@ gst_wrapper_camera_bin_src_class_init (GstWrapperCameraBinSrcClass * klass)
GST_DEBUG_CATEGORY_INIT (wrapper_camera_bin_src_debug, "wrappercamerabinsrc",
0, "wrapper camera src");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&vfsrc_template));
+ gst_element_class_add_static_pad_template (gstelement_class, &vfsrc_template);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&imgsrc_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &imgsrc_template);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&vidsrc_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &vidsrc_template);
gst_element_class_set_static_metadata (gstelement_class,
"Wrapper camera src element for camerabin2", "Source/Video",