diff options
author | Andreas Oberritter <devnull@localhost> | 2003-01-09 02:42:17 +0000 |
---|---|---|
committer | Andreas Oberritter <devnull@localhost> | 2003-01-09 02:42:17 +0000 |
commit | d943bbf1e37291d4aa2aacd696898ae8a596bb1c (patch) | |
tree | 557f91ed18fcfb658dba664ba976badf5a514dc9 | |
parent | d166085ef7eea32af71c4c20321f067a38bb394a (diff) | |
download | mediapointer-dvb-s2-d943bbf1e37291d4aa2aacd696898ae8a596bb1c.tar.gz mediapointer-dvb-s2-d943bbf1e37291d4aa2aacd696898ae8a596bb1c.tar.bz2 |
last commit did break select()
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dmxdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dmxdev.c b/linux/drivers/media/dvb/dvb-core/dmxdev.c index 92d58d5ea..a097a0858 100644 --- a/linux/drivers/media/dvb/dvb-core/dmxdev.c +++ b/linux/drivers/media/dvb/dvb-core/dmxdev.c @@ -984,6 +984,9 @@ unsigned int dvb_demux_poll (struct file *file, poll_table *wait) if (!dmxdevfilter) return -EINVAL; + if (dmxdevfilter->buffer.pread != dmxdevfilter->buffer.pwrite) + return (POLLIN | POLLRDNORM | POLLPRI); + poll_wait(file, &dmxdevfilter->buffer.queue, wait); if (dmxdevfilter->state != DMXDEV_STATE_GO) |