summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Baker <steve@stevebaker.org>2001-09-29 11:00:30 +0000
committerSteve Baker <steve@stevebaker.org>2001-09-29 11:00:30 +0000
commitb4a9554f99550c8ca9b773dc7e92024d8e303419 (patch)
tree77e66407db87d76250575ef11aed690b2615d660
parent66f8bf4e2f745d4d5e27aa242aae6703babb7f11 (diff)
downloadgstreamer-b4a9554f99550c8ca9b773dc7e92024d8e303419.tar.gz
shouldn't sink here. that is up to the pad's parent (the element)
Original commit message from CVS: shouldn't sink here. that is up to the pad's parent (the element)
-rw-r--r--gst/gstpad.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/gstpad.c b/gst/gstpad.c
index 0af8373ddb..ed9061d663 100644
--- a/gst/gstpad.c
+++ b/gst/gstpad.c
@@ -287,8 +287,7 @@ gst_pad_new_from_template (GstPadTemplate *templ,
g_return_val_if_fail (templ != NULL, NULL);
pad = gst_pad_new (name, templ->direction);
- gst_object_ref (GST_OBJECT (templ));
- gst_object_sink (GST_OBJECT (templ));
+
GST_PAD_PADTEMPLATE(pad) = templ;
return pad;
@@ -1061,7 +1060,7 @@ gst_real_pad_dispose (GObject *object)
g_list_free (orig);
g_list_free (GST_REAL_PAD(pad)->ghostpads);
}
-
+
G_OBJECT_CLASS (real_pad_parent_class)->dispose (object);
}