Commit d48646ce authored by Philipp Zabel's avatar Philipp Zabel Committed by Philipp Zabel

v4l2bufferpool: do not queue released buffers on an orphaned pool

When a buffer pool is orphaned, we expect its buffers to be released
some time later, when their reference count drops to zero. There is
nothing to be done in the release function. Specifically, the buffers
must not be queued back into the already released V4L2 queue.
parent 91e858dc
Pipeline #43910 passed with stages
in 36 minutes and 32 seconds
......@@ -1458,6 +1458,11 @@ gst_v4l2_buffer_pool_release_buffer (GstBufferPool * bpool, GstBuffer * buffer)
GstBufferPoolClass *pclass = GST_BUFFER_POOL_CLASS (parent_class);
GstV4l2Object *obj = pool->obj;
if (pool->orphaned) {
GST_DEBUG_OBJECT (pool, "release buffer %p (orphaned)", buffer);
GST_DEBUG_OBJECT (pool, "release buffer %p", buffer);
/* If the buffer's pool has been orphaned, dispose of it so that
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment