Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242099
b: refs/heads/master
c: 4ffabdb
h: refs/heads/master
i:
  242097: fdd187c
  242095: 7e90c6b
v: v3
  • Loading branch information
Pawel Osciak authored and Mauro Carvalho Chehab committed Mar 22, 2011
1 parent c2b52b5 commit 49e37e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 950720840f392075b19d902e5ca7806a17a562cb
refs/heads/master: 4ffabdb35ad59fdb8cb6ad3ff4733694ff0dfc35
6 changes: 3 additions & 3 deletions trunk/drivers/media/video/videobuf2-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1364,18 +1364,18 @@ unsigned int vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait)
struct vb2_buffer *vb = NULL;

/*
* Start file io emulator if streaming api has not been used yet.
* Start file I/O emulator only if streaming API has not been used yet.
*/
if (q->num_buffers == 0 && q->fileio == NULL) {
if (!V4L2_TYPE_IS_OUTPUT(q->type) && (q->io_modes & VB2_READ)) {
ret = __vb2_init_fileio(q, 1);
if (ret)
return ret;
return POLLERR;
}
if (V4L2_TYPE_IS_OUTPUT(q->type) && (q->io_modes & VB2_WRITE)) {
ret = __vb2_init_fileio(q, 0);
if (ret)
return ret;
return POLLERR;
/*
* Write to OUTPUT queue can be done immediately.
*/
Expand Down

0 comments on commit 49e37e0

Please sign in to comment.