boundarydevices / linux

Kernel tree for Boundary Devices platforms
194 stars 290 forks source link

mxc_poll bug fix. Return 0 if no frames captured. #14

Open IvanZuy opened 9 years ago

IvanZuy commented 9 years ago

.poll file operation should only return POLLIN | POLLRDNORM if frames are available for dequeuing otherwise it should return 0. Returns POLLIN | POLLRDNORM without checking for available frames prevents userspace poll/select methods from sleeping waiting for file descriptor event.