summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ivtv/ivtv-fileops.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-04-28 14:18:00 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-04-28 14:18:00 +0200
commite757fed0e3eaae3f50e0f29a75a24c3fa7c42fd2 (patch)
tree379d0db275ff6f8a10036106f3c5c0134940773f /linux/drivers/media/video/ivtv/ivtv-fileops.c
parent252622ca1708ddfccc338d0619f59350ce4ff335 (diff)
downloadmediapointer-dvb-s2-e757fed0e3eaae3f50e0f29a75a24c3fa7c42fd2.tar.gz
mediapointer-dvb-s2-e757fed0e3eaae3f50e0f29a75a24c3fa7c42fd2.tar.bz2
ivtv: POLLHUP must be returned on eof.
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/ivtv/ivtv-fileops.c')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-fileops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-fileops.c b/linux/drivers/media/video/ivtv/ivtv-fileops.c
index a7640c49f..2b74b0ab1 100644
--- a/linux/drivers/media/video/ivtv/ivtv-fileops.c
+++ b/linux/drivers/media/video/ivtv/ivtv-fileops.c
@@ -755,8 +755,10 @@ unsigned int ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait)
IVTV_DEBUG_HI_FILE("Encoder poll\n");
poll_wait(filp, &s->waitq, wait);
- if (eof || s->q_full.length || s->q_io.length)
+ if (s->q_full.length || s->q_io.length)
return POLLIN | POLLRDNORM;
+ if (eof)
+ return POLLHUP;
return 0;
}