]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (7791): ivtv: POLLHUP must be returned on eof
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 28 Apr 2008 15:18:00 +0000 (12:18 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 30 Apr 2008 03:22:13 +0000 (00:22 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-fileops.c

index a7640c49f1d84aa6f89e8f81e67b291d62a67350..2b74b0ab147788c7942d5af34dfe1beeb954f904 100644 (file)
@@ -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;
 }