GNOME Bugzilla – Bug 794904
v4l2bufferpool: Try return input buffer sooner
Last modified: 2018-06-07 19:32:59 UTC
The following patch is an experiment. It needs more testing, but the idea is that if we have a v4l2 element importing from upstream (v4l2sink or v4l2transform) then we want the buffers to be returned as soon as possible. The current pool design was that it didn't matter leaving the unused buffers in the queue as upstream would call acquire, but this does not work if upstream buffers are imorted (e.g. upstream pushes dmabuf).
Created attachment 370449 [details] [review] v4l2bufferpool: Try return input buffer soon In this patch we use a non-blocking poll in order to return all input buffers (buffers from v4l2-output queue). This prevent holding too long on upstreaming buffer in importing.
Attachment 370449 [details] pushed as e943a11 - v4l2bufferpool: Try return input buffer soon