Re: [URGENT] [PATCH] vb2: Don't WARN when v4l2_buffer.bytesused is 0 for multiplanar buffers

2015-06-19 Thread Hans Verkuil
On 06/19/2015 01:50 PM, Laurent Pinchart wrote: Commit f61bf13b6a07 ([media] vb2: add allow_zero_bytesused flag to the vb2_queue struct) added a WARN_ONCE to catch usage of a deprecated API using a zero value for v4l2_buffer.bytesused. However, the condition is checked incorrectly, as the

[URGENT] [PATCH] vb2: Don't WARN when v4l2_buffer.bytesused is 0 for multiplanar buffers

2015-06-19 Thread Laurent Pinchart
Commit f61bf13b6a07 ([media] vb2: add allow_zero_bytesused flag to the vb2_queue struct) added a WARN_ONCE to catch usage of a deprecated API using a zero value for v4l2_buffer.bytesused. However, the condition is checked incorrectly, as the v4L2_buffer bytesused field is supposed to be ignored

Re: [URGENT] [PATCH] vb2: Don't WARN when v4l2_buffer.bytesused is 0 for multiplanar buffers

2015-06-19 Thread Laurent Pinchart
Hi Hans, On Friday 19 June 2015 13:56:23 Hans Verkuil wrote: On 06/19/2015 01:50 PM, Laurent Pinchart wrote: Commit f61bf13b6a07 ([media] vb2: add allow_zero_bytesused flag to the vb2_queue struct) added a WARN_ONCE to catch usage of a deprecated API using a zero value for