diff options
author | Holger Waechtler <devnull@localhost> | 2003-03-06 18:19:06 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2003-03-06 18:19:06 +0000 |
commit | 97fa6750eeab1785ab62d0e881867caa1166bb92 (patch) | |
tree | 89545a22a2a9bf403859a29f4703bcde8be0534d /linux/drivers/media/dvb/dvb-core | |
parent | 5b25e9c0c27612b86a68281ced663a9a789e77ac (diff) | |
download | mediapointer-dvb-s2-97fa6750eeab1785ab62d0e881867caa1166bb92.tar.gz mediapointer-dvb-s2-97fa6750eeab1785ab62d0e881867caa1166bb92.tar.bz2 |
another attempt to get the poll() thing right...
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dmxdev.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dmxdev.c b/linux/drivers/media/dvb/dvb-core/dmxdev.c index bb1ed50d1..c54e397cd 100644 --- a/linux/drivers/media/dvb/dvb-core/dmxdev.c +++ b/linux/drivers/media/dvb/dvb-core/dmxdev.c @@ -985,10 +985,8 @@ unsigned int dvb_demux_poll (struct file *file, poll_table *wait) poll_wait(file, &dmxdevfilter->buffer.queue, wait); - if (dmxdevfilter->state != DMXDEV_STATE_GO) - return 0; - - if (dmxdevfilter->state == DMXDEV_STATE_FREE) + if (dmxdevfilter->state != DMXDEV_STATE_GO && + dmxdevfilter->state != DMXDEV_STATE_DONE) return 0; if (dmxdevfilter->buffer.error) |