Re: [REVIEWv3 PATCH 12/17] vb2: properly clean up PREPARED and QUEUED buffers

2014-03-02 Thread Sakari Ailus
On Fri, Feb 28, 2014 at 06:42:10PM +0100, Hans Verkuil wrote: > From: Hans Verkuil > > If __reqbufs was called then existing buffers are freed. However, if that > happens without ever having started STREAMON, but if buffers have been queued, > then the buf_finish op is never called. > > Add a ca

[REVIEWv3 PATCH 12/17] vb2: properly clean up PREPARED and QUEUED buffers

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil If __reqbufs was called then existing buffers are freed. However, if that happens without ever having started STREAMON, but if buffers have been queued, then the buf_finish op is never called. Add a call to __vb2_queue_cancel in __reqbufs so that these buffers are cleaned up t