mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:26:14 +00:00
fix pad tempalte leak in tee
Original commit message from CVS: fix pad tempalte leak in tee
This commit is contained in:
parent
d5497ccd53
commit
ed4d1cee0e
3 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-11-16 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* gst/elements/gsttee.c: (gst_tee_init):
|
||||||
|
fix pad tempalte leak in tee
|
||||||
|
|
||||||
2005-11-16 Thomas Vander Stichele <thomas at apestaart dot org>
|
2005-11-16 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* gst/glib-compat.c: (g_value_dup_gst_object):
|
* gst/glib-compat.c: (g_value_dup_gst_object):
|
||||||
|
|
|
@ -140,9 +140,10 @@ gst_tee_class_init (GstTeeClass * klass)
|
||||||
static void
|
static void
|
||||||
gst_tee_init (GstTee * tee, GstTeeClass * g_class)
|
gst_tee_init (GstTee * tee, GstTeeClass * g_class)
|
||||||
{
|
{
|
||||||
tee->sinkpad =
|
GstPadTemplate *templ = gst_static_pad_template_get (&sinktemplate);
|
||||||
gst_pad_new_from_template (gst_static_pad_template_get (&sinktemplate),
|
|
||||||
"sink");
|
tee->sinkpad = gst_pad_new_from_template (templ, "sink");
|
||||||
|
gst_object_unref (templ);
|
||||||
gst_pad_set_setcaps_function (tee->sinkpad,
|
gst_pad_set_setcaps_function (tee->sinkpad,
|
||||||
GST_DEBUG_FUNCPTR (gst_pad_proxy_setcaps));
|
GST_DEBUG_FUNCPTR (gst_pad_proxy_setcaps));
|
||||||
gst_pad_set_getcaps_function (tee->sinkpad,
|
gst_pad_set_getcaps_function (tee->sinkpad,
|
||||||
|
|
|
@ -140,9 +140,10 @@ gst_tee_class_init (GstTeeClass * klass)
|
||||||
static void
|
static void
|
||||||
gst_tee_init (GstTee * tee, GstTeeClass * g_class)
|
gst_tee_init (GstTee * tee, GstTeeClass * g_class)
|
||||||
{
|
{
|
||||||
tee->sinkpad =
|
GstPadTemplate *templ = gst_static_pad_template_get (&sinktemplate);
|
||||||
gst_pad_new_from_template (gst_static_pad_template_get (&sinktemplate),
|
|
||||||
"sink");
|
tee->sinkpad = gst_pad_new_from_template (templ, "sink");
|
||||||
|
gst_object_unref (templ);
|
||||||
gst_pad_set_setcaps_function (tee->sinkpad,
|
gst_pad_set_setcaps_function (tee->sinkpad,
|
||||||
GST_DEBUG_FUNCPTR (gst_pad_proxy_setcaps));
|
GST_DEBUG_FUNCPTR (gst_pad_proxy_setcaps));
|
||||||
gst_pad_set_getcaps_function (tee->sinkpad,
|
gst_pad_set_getcaps_function (tee->sinkpad,
|
||||||
|
|
Loading…
Reference in a new issue