From ba81eeb16bea849ab0d1383de2376f38c0e6bb54 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Thu, 12 Dec 2013 17:09:59 +0000 Subject: [PATCH] v4l2object: unref downstream pool https://bugzilla.gnome.org/show_bug.cgi?id=720568 --- sys/v4l2/gstv4l2object.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index a3ea88cbc2..a78153853b 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;