Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242100
b: refs/heads/master
c: 5db2c3b
h: refs/heads/master
v: v3
  • Loading branch information
Pawel Osciak authored and Mauro Carvalho Chehab committed Mar 22, 2011
1 parent 49e37e0 commit 9fbc332
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 4ffabdb35ad59fdb8cb6ad3ff4733694ff0dfc35
refs/heads/master: 5db2c3ba4de8489a7a064bac463bb8af2c7a1ae4
11 changes: 8 additions & 3 deletions trunk/drivers/media/video/videobuf2-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,7 @@ EXPORT_SYMBOL_GPL(vb2_dqbuf);
int vb2_streamon(struct vb2_queue *q, enum v4l2_buf_type type)
{
struct vb2_buffer *vb;
int ret;

if (q->fileio) {
dprintk(1, "streamon: file io in progress\n");
Expand Down Expand Up @@ -1138,12 +1139,16 @@ int vb2_streamon(struct vb2_queue *q, enum v4l2_buf_type type)
}
}

q->streaming = 1;

/*
* Let driver notice that streaming state has been enabled.
*/
call_qop(q, start_streaming, q);
ret = call_qop(q, start_streaming, q);
if (ret) {
dprintk(1, "streamon: driver refused to start streaming\n");
return ret;
}

q->streaming = 1;

/*
* If any buffers were queued before streamon,
Expand Down

0 comments on commit 9fbc332

Please sign in to comment.