diff options
Diffstat (limited to 'drivers/media/video/ivtv')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-fileops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/ivtv/ivtv-fileops.c b/drivers/media/video/ivtv/ivtv-fileops.c index a7640c49f1d8..2b74b0ab1477 100644 --- a/drivers/media/video/ivtv/ivtv-fileops.c +++ b/drivers/media/video/ivtv/ivtv-fileops.c | |||
@@ -755,8 +755,10 @@ unsigned int ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait) | |||
755 | IVTV_DEBUG_HI_FILE("Encoder poll\n"); | 755 | IVTV_DEBUG_HI_FILE("Encoder poll\n"); |
756 | poll_wait(filp, &s->waitq, wait); | 756 | poll_wait(filp, &s->waitq, wait); |
757 | 757 | ||
758 | if (eof || s->q_full.length || s->q_io.length) | 758 | if (s->q_full.length || s->q_io.length) |
759 | return POLLIN | POLLRDNORM; | 759 | return POLLIN | POLLRDNORM; |
760 | if (eof) | ||
761 | return POLLHUP; | ||
760 | return 0; | 762 | return 0; |
761 | } | 763 | } |
762 | 764 | ||