Re: [REVIEWv3 PATCH 01/17] vb2: Check if there are buffers before streamon

2014-03-02 Thread Pawel Osciak
On Sat, Mar 1, 2014 at 2:41 AM, Hans Verkuil wrote: > From: Ricardo Ribalda Delgado > > This patch adds a test preventing streamon() if there is no buffer > ready. > > Without this patch, a user could call streamon() before > preparing any buffer. This leads to a situation where if he calls > clo

[REVIEWv3 PATCH 01/17] vb2: Check if there are buffers before streamon

2014-02-28 Thread Hans Verkuil
From: Ricardo Ribalda Delgado This patch adds a test preventing streamon() if there is no buffer ready. Without this patch, a user could call streamon() before preparing any buffer. This leads to a situation where if he calls close() before calling streamoff() the device is kept streaming. Sign