Re: [PATCH 2/2] media: v4l2-mem2mem: reorder checks in v4l2_m2m_poll()

2019-06-27 Thread Michael Tretter
On Wed, 26 Jun 2019 13:44:23 +0200, Hans Verkuil wrote: > On 6/25/19 4:11 PM, Michael Tretter wrote: > > When reaching the end of stream, V4L2 m2m clients may expect the > > V4L2_EOS_EVENT. Although the V4L2_EOS_EVENT is deprecated behavior, > > drivers must signal that event before dequeuing th

Re: [PATCH 2/2] media: v4l2-mem2mem: reorder checks in v4l2_m2m_poll()

2019-06-26 Thread Hans Verkuil
On 6/25/19 4:11 PM, Michael Tretter wrote: > When reaching the end of stream, V4L2 m2m clients may expect the > V4L2_EOS_EVENT. Although the V4L2_EOS_EVENT is deprecated behavior, > drivers must signal that event before dequeuing the buffer that has the > V4L2_BUF_FLAG_LAST flag set. > > If a driv

[PATCH 2/2] media: v4l2-mem2mem: reorder checks in v4l2_m2m_poll()

2019-06-25 Thread Michael Tretter
When reaching the end of stream, V4L2 m2m clients may expect the V4L2_EOS_EVENT. Although the V4L2_EOS_EVENT is deprecated behavior, drivers must signal that event before dequeuing the buffer that has the V4L2_BUF_FLAG_LAST flag set. If a driver queues the V4L2_EOS_EVENT event and returns the buff