[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
This commit is contained in:
philippe.kalaf@collabora.co.uk 2006-03-24 19:57:20 +00:00 committed by Olivier Crête
parent 78f8f112c1
commit 107a5b0f4e

View file

@ -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;
}