summaryrefslogtreecommitdiff
path: root/tools/element-templates
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-28 13:08:27 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-28 13:08:27 +0000
commit7521b597f4dc49d8d168f368f0e7ebaf98a72156 (patch)
tree0033ba79e1bf8add58e1dcecffa95f73010bbd10 /tools/element-templates
parent26d6add9457f00ce8ec13844368466f0e3816e5d (diff)
downloadgstreamer-plugins-bad-7521b597f4dc49d8d168f368f0e7ebaf98a72156.tar.gz
various: fix pad template ref leaks
https://bugzilla.gnome.org/show_bug.cgi?id=662664
Diffstat (limited to 'tools/element-templates')
-rw-r--r--tools/element-templates/sinkpad4
-rw-r--r--tools/element-templates/sinkpad-simple4
-rw-r--r--tools/element-templates/srcpad4
-rw-r--r--tools/element-templates/srcpad-simple4
4 files changed, 8 insertions, 8 deletions
diff --git a/tools/element-templates/sinkpad b/tools/element-templates/sinkpad
index 6d3bad1fb..ec8a98060 100644
--- a/tools/element-templates/sinkpad
+++ b/tools/element-templates/sinkpad
@@ -30,8 +30,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
);
% base-init
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_replace_sink_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_replace_sink_template);
% instance-init
replace->sinkpad = gst_pad_new_from_static_template (&gst_replace_sink_template
diff --git a/tools/element-templates/sinkpad-simple b/tools/element-templates/sinkpad-simple
index e8538b6ec..822079bee 100644
--- a/tools/element-templates/sinkpad-simple
+++ b/tools/element-templates/sinkpad-simple
@@ -12,8 +12,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
);
% base-init
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_replace_sink_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_replace_sink_template);
% instance-init
replace->sinkpad = gst_pad_new_from_static_template (&gst_replace_sink_template
diff --git a/tools/element-templates/srcpad b/tools/element-templates/srcpad
index d1f799267..9c4f32052 100644
--- a/tools/element-templates/srcpad
+++ b/tools/element-templates/srcpad
@@ -28,8 +28,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
);
% base-init
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_replace_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_replace_src_template);
% instance-init
replace->srcpad = gst_pad_new_from_static_template (&gst_replace_src_template
diff --git a/tools/element-templates/srcpad-simple b/tools/element-templates/srcpad-simple
index 0fca9157e..efb3190c6 100644
--- a/tools/element-templates/srcpad-simple
+++ b/tools/element-templates/srcpad-simple
@@ -12,8 +12,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
);
% base-init
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_replace_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_replace_src_template);
% instance-init
replace->srcpad = gst_pad_new_from_static_template (&gst_replace_src_template