summaryrefslogtreecommitdiff
path: root/gst/gstpadtemplate.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-05-02 14:36:50 +0200
committerWim Taymans <wim@metal.(none)>2009-05-11 22:35:09 +0200
commit84c5db2635c44fa7c4004b05401f400ee6bad382 (patch)
tree9740300b646c7a6414285340e95c3957f2d0f3c2 /gst/gstpadtemplate.c
parent54401df78c138e1dcf90b984978dd785416d1f1a (diff)
Use new _ref_sink when we can
Diffstat (limited to 'gst/gstpadtemplate.c')
-rw-r--r--gst/gstpadtemplate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/gstpadtemplate.c b/gst/gstpadtemplate.c
index 53c51bc30..217b66526 100644
--- a/gst/gstpadtemplate.c
+++ b/gst/gstpadtemplate.c
@@ -231,8 +231,7 @@ gst_pad_template_init (GstPadTemplate * templ)
* owned by the creator of the object
*/
if (GST_OBJECT_IS_FLOATING (templ)) {
- gst_object_ref (templ);
- gst_object_sink (templ);
+ gst_object_ref_sink (templ);
}
}