Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306083
b: refs/heads/master
c: d0b66fd
h: refs/heads/master
i:
  306081: 1c51db9
  306079: 99e5b42
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 27, 2012
1 parent 43e1b29 commit 66a237c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 50953e0640b3473dcb409d5d0d938c2742c93b0d
refs/heads/master: d0b66fdfd3c5c31764740f6ffe5a345549d6af97
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/ivtv/ivtv-fileops.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,16 +746,18 @@ unsigned int ivtv_v4l2_dec_poll(struct file *filp, poll_table *wait)
return res;
}

unsigned int ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait)
unsigned int ivtv_v4l2_enc_poll(struct file *filp, poll_table *wait)
{
unsigned long req_events = poll_requested_events(wait);
struct ivtv_open_id *id = fh2id(filp->private_data);
struct ivtv *itv = id->itv;
struct ivtv_stream *s = &itv->streams[id->type];
int eof = test_bit(IVTV_F_S_STREAMOFF, &s->s_flags);
unsigned res = 0;

/* Start a capture if there is none */
if (!eof && !test_bit(IVTV_F_S_STREAMING, &s->s_flags)) {
if (!eof && !test_bit(IVTV_F_S_STREAMING, &s->s_flags) &&
(req_events & (POLLIN | POLLRDNORM))) {
int rc;

rc = ivtv_start_capture(id);
Expand Down

0 comments on commit 66a237c

Please sign in to comment.