X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=sys%2Fv4l2%2Fgstv4l2bufferpool.c;h=1e74fc75b741336a5146f90accb2cc5c9a9f10e7;hb=07e4dd3424459c05a6711df93a3a169b7822ce48;hp=3ead390968f256f1c5e52ceab1c07ce2298f0fc1;hpb=1a11a9be0caabce1f53948004d1b02168590b464;p=platform%2Fupstream%2Fgst-plugins-good.git diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index 3ead390..1e74fc7 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -1262,8 +1262,10 @@ gst_v4l2_buffer_pool_process (GstV4l2BufferPool * pool, GstBuffer * buf) /* all buffers are queued, try to dequeue one and release it back * into the pool so that _acquire can get to it again. */ ret = gst_v4l2_buffer_pool_dqbuf (pool, &out); - if (ret != GST_FLOW_OK) + if (ret != GST_FLOW_OK) { + gst_buffer_unref (to_queue); goto done; + } /* release the rendered buffer back into the pool. This wakes up any * thread waiting for a buffer in _acquire(). If the buffer still has