commit | 45053edc054ac9467adfdaf4f8a39db15af22b37 | [log] [tgz] |
---|---|---|
author | Hans Verkuil <hans.verkuil@cisco.com> | Fri Aug 28 08:48:28 2015 -0300 |
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | Thu Oct 01 08:22:41 2015 -0300 |
tree | a6955a24f14419f083f8479b28b1d3cbda6f9d40 | |
parent | d6d3fe2fe118ad13ac3a24c1e45a37312b44c462 [diff] |
[media] saa7164: fix poll bugs - poll doesn't return negative values, so you can't return -EINVAL. Instead return POLLERR. - poll can't be called if !video_is_registered(), so this test can be dropped. - poll can never do a blocking wait, so remove that check. - poll shouldn't attempt to start streaming if the caller isn't interested in read events. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>