projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1a72c0
)
also need to ref the template in gst_pad_new_from_template
author
Steve Baker
<steve@stevebaker.org>
Sat, 29 Sep 2001 15:39:00 +0000
(15:39 +0000)
committer
Steve Baker
<steve@stevebaker.org>
Sat, 29 Sep 2001 15:39:00 +0000
(15:39 +0000)
Original commit message from CVS:
also need to ref the template in gst_pad_new_from_template
gst/gstpad.c
patch
|
blob
|
history
diff --git
a/gst/gstpad.c
b/gst/gstpad.c
index
ed9061d
..
a21a964
100644
(file)
--- a/
gst/gstpad.c
+++ b/
gst/gstpad.c
@@
-287,9
+287,10
@@
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_PAD_PADTEMPLATE(pad) = templ;
-
+
return pad;
}