forked from Minki/linux
media: v4l2-mem2mem: add q->error check to v4l2_m2m_poll()
The v4l2_m2m_poll function didn't check whether q->error was set for either of the two queues. Add support for this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
dd8695e4e1
commit
96ebc0ca6f
@ -638,8 +638,10 @@ __poll_t v4l2_m2m_poll(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
|
||||
* means either in driver already or waiting for driver to claim it
|
||||
* and start processing.
|
||||
*/
|
||||
if ((!src_q->streaming || list_empty(&src_q->queued_list))
|
||||
&& (!dst_q->streaming || list_empty(&dst_q->queued_list))) {
|
||||
if ((!src_q->streaming || src_q->error ||
|
||||
list_empty(&src_q->queued_list)) &&
|
||||
(!dst_q->streaming || dst_q->error ||
|
||||
list_empty(&dst_q->queued_list))) {
|
||||
rc |= EPOLLERR;
|
||||
goto end;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user