diff options
author | Steve Baker <steve@stevebaker.org> | 2001-09-29 11:00:30 +0000 |
---|---|---|
committer | Steve Baker <steve@stevebaker.org> | 2001-09-29 11:00:30 +0000 |
commit | b4a9554f99550c8ca9b773dc7e92024d8e303419 (patch) | |
tree | 77e66407db87d76250575ef11aed690b2615d660 /gst | |
parent | 66f8bf4e2f745d4d5e27aa242aae6703babb7f11 (diff) |
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)
Diffstat (limited to 'gst')
-rw-r--r-- | gst/gstpad.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/gstpad.c b/gst/gstpad.c index 0af8373dd..ed9061d66 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); } |