[gst-cvs] gst-plugins-bad: [MOVED FROM GST-P-FARSIGHT] Calls to gst_pad_get_parent ref the object so it needs to be unreffed < hexa00 at gmail.com

Olivier Crête tester at kemper.freedesktop.org
Tue Mar 3 14:19:56 PST 2009


Module: gst-plugins-bad
Branch: master
Commit: 107a5b0f4edb1c724030b8bddead0261f4a65f1b
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=107a5b0f4edb1c724030b8bddead0261f4a65f1b

Author: philippe.kalaf at collabora.co.uk <philippe.kalaf at collabora.co.uk>
Date:   Fri Mar 24 19:57:20 2006 +0000

[MOVED FROM GST-P-FARSIGHT] Calls to gst_pad_get_parent ref the object so it needs to be unreffed < hexa00 at gmail.com

20060324195720-2425b-17928be34ee67f71efbaf62de76deba9ad13f0f2.gz

---

 ext/mimic/gstmimenc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ext/mimic/gstmimenc.c b/ext/mimic/gstmimenc.c
index 34e5da9..55d9d09 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;
 }
 





More information about the Gstreamer-commits mailing list