mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
also need to ref the template in gst_pad_new_from_template
Original commit message from CVS: also need to ref the template in gst_pad_new_from_template
This commit is contained in:
parent
b1a72c0307
commit
b213eab345
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue