forked from Minki/linux
V4L/DVB (12791): tm6000: fix poll() method
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
5f796752e8
commit
dc6a02aa35
@ -1449,9 +1449,8 @@ tm6000_poll(struct file *file, struct poll_table_struct *wait)
|
||||
buf = list_entry(fh->vb_vidq.stream.next,struct tm6000_buffer,vb.stream);
|
||||
} else {
|
||||
/* read() capture */
|
||||
buf = (struct tm6000_buffer*)fh->vb_vidq.read_buf;
|
||||
if (NULL == buf)
|
||||
return POLLERR;
|
||||
return videobuf_poll_stream(file, &fh->vb_vidq,
|
||||
wait);
|
||||
}
|
||||
poll_wait(file, &buf->vb.done, wait);
|
||||
if (buf->vb.state == STATE_DONE ||
|
||||
|
Loading…
Reference in New Issue
Block a user