From: Julien Isorce Date: Thu, 12 Dec 2013 17:09:59 +0000 (+0000) Subject: v4l2object: unref downstream pool X-Git-Tag: 1.3.1~333 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba81eeb16bea849ab0d1383de2376f38c0e6bb54;p=platform%2Fupstream%2Fgst-plugins-good.git v4l2object: unref downstream pool https://bugzilla.gnome.org/show_bug.cgi?id=720568 --- diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index a3ea88c..a781538 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -3292,6 +3292,8 @@ gst_v4l2_object_decide_allocation (GstV4l2Object * obj, GstQuery * query) case GST_V4L2_IO_USERPTR: case GST_V4L2_IO_DMABUF: /* in streaming mode, prefer our own pool */ + if (pool) + gst_object_unref (pool); pool = GST_BUFFER_POOL_CAST (obj->pool); size = obj->sizeimage; max = 0;