From 107a5b0f4edb1c724030b8bddead0261f4a65f1b Mon Sep 17 00:00:00 2001 From: "philippe.kalaf@collabora.co.uk" Date: Fri, 24 Mar 2006 19:57:20 +0000 Subject: [MOVED FROM GST-P-FARSIGHT] Calls to gst_pad_get_parent ref the object so it needs to be unreffed < hexa00@gmail.com 20060324195720-2425b-17928be34ee67f71efbaf62de76deba9ad13f0f2.gz --- ext/mimic/gstmimenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/mimic/gstmimenc.c b/ext/mimic/gstmimenc.c index 34e5da97..55d9d096 100644 --- a/ext/mimic/gstmimenc.c +++ b/ext/mimic/gstmimenc.c @@ -223,9 +223,10 @@ gst_mimenc_setcaps (GstPad *pad, GstCaps *caps) filter->res = (width == 320) ? MIMIC_RES_HIGH : MIMIC_RES_LOW; GST_DEBUG ("Got info from caps w : %d, h : %d", filter->width, filter->height); if (!ret) { + gst_object_unref(filter); return FALSE; } - + gst_object_unref(filter); return TRUE; } -- cgit v1.2.1