Re: [RFC/PATCH] v4l: vb2: Add a function to discard all DONE buffers

2014-03-10 Thread Hans Verkuil
On 03/10/2014 02:04 PM, Laurent Pinchart wrote: > When suspending a device while a video stream is active all buffers > marked as done but not dequeued yet will be kept across suspend and > given back to userspace after resume. This will result in outdated > buffers being dequeued. > > Introduce a

[RFC/PATCH] v4l: vb2: Add a function to discard all DONE buffers

2014-03-10 Thread Laurent Pinchart
When suspending a device while a video stream is active all buffers marked as done but not dequeued yet will be kept across suspend and given back to userspace after resume. This will result in outdated buffers being dequeued. Introduce a new vb2 function to mark all done buffers as erroneous inst