[media] videobuf2: don't return POLLERR when only polling for events
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 30 Jan 2013 16:29:02 +0000 (13:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Feb 2013 20:22:15 +0000 (18:22 -0200)
commitcd13823f5db3e66552801c04f0e761408ef17eb0
tree78bc3dac7efc1db8129a759f44718bcabb8ea771
parent971dfc678114d61c07bd6f8ff8380558b6e12d5d
[media] videobuf2: don't return POLLERR when only polling for events

If you only poll for events, then vb2_poll will return POLLPRI | POLLERR if
no streaming is in progress. That's not right, it's perfectly valid to
poll just for events.

Cc: Pawel Osciak <pawel@osciak.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/v4l2-core/videobuf2-core.c