From a7b3634dddb6bd061e036bc580c5c7bcfa4cd301 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 30 May 2003 13:36:04 +0000 Subject: [PATCH] - the result from the getcaps function should be sunken (gst_caps_sink) instead of unreffed. Not sure that's the righ... Original commit message from CVS: - the result from the getcaps function should be sunken (gst_caps_sink) instead of unreffed. Not sure that's the right thing to do... --- gst/elements/gsttee.c | 2 +- plugins/elements/gsttee.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/elements/gsttee.c b/gst/elements/gsttee.c index 1b2eba0f19..1db945c07c 100644 --- a/gst/elements/gsttee.c +++ b/gst/elements/gsttee.c @@ -198,7 +198,7 @@ gst_tee_getcaps (GstPad *pad, GstCaps *filter) peercaps = gst_pad_get_caps (peer); newcaps = gst_caps_intersect (caps, peercaps); gst_caps_unref (caps); - gst_caps_unref (peercaps); + gst_caps_sink (peercaps); caps = newcaps; } diff --git a/plugins/elements/gsttee.c b/plugins/elements/gsttee.c index 1b2eba0f19..1db945c07c 100644 --- a/plugins/elements/gsttee.c +++ b/plugins/elements/gsttee.c @@ -198,7 +198,7 @@ gst_tee_getcaps (GstPad *pad, GstCaps *filter) peercaps = gst_pad_get_caps (peer); newcaps = gst_caps_intersect (caps, peercaps); gst_caps_unref (caps); - gst_caps_unref (peercaps); + gst_caps_sink (peercaps); caps = newcaps; }