v4l2object: unref downstream pool

https://bugzilla.gnome.org/show_bug.cgi?id=720568
This commit is contained in:
Julien Isorce 2013-12-12 17:09:59 +00:00 committed by Nicolas Dufresne
parent c701dcd16c
commit ba81eeb16b

View file

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