mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 20:25:25 +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
|
@ -288,6 +288,7 @@ gst_pad_new_from_template (GstPadTemplate *templ,
|
||||||
|
|
||||||
pad = gst_pad_new (name, templ->direction);
|
pad = gst_pad_new (name, templ->direction);
|
||||||
|
|
||||||
|
gst_object_ref (GST_OBJECT (templ));
|
||||||
GST_PAD_PADTEMPLATE(pad) = templ;
|
GST_PAD_PADTEMPLATE(pad) = templ;
|
||||||
|
|
||||||
return pad;
|
return pad;
|
||||||
|
|
Loading…
Reference in a new issue