diff options
author | Holger Waechtler <devnull@localhost> | 2003-02-20 15:00:37 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2003-02-20 15:00:37 +0000 |
commit | b01856d0825ac217cbf60d11052f0339fda9e78d (patch) | |
tree | 5923d8eeb79de4aa77ea7d303feb1969011517ab /linux/drivers/media/dvb/ttpci | |
parent | 7909ab1a27f58b54b6238d9fd78d005bf27dff48 (diff) | |
download | mediapointer-dvb-s2-b01856d0825ac217cbf60d11052f0339fda9e78d.tar.gz mediapointer-dvb-s2-b01856d0825ac217cbf60d11052f0339fda9e78d.tar.bz2 |
ensure that poll_wait() is always called in poll()
Diffstat (limited to 'linux/drivers/media/dvb/ttpci')
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c index 7fe27458f..7838c9ab4 100644 --- a/linux/drivers/media/dvb/ttpci/av7110.c +++ b/linux/drivers/media/dvb/ttpci/av7110.c @@ -2643,9 +2643,9 @@ unsigned int dvb_audio_poll(struct file *file, poll_table *wait) DEB_EE(("av7110: %p\n",av7110)); - if (av7110->playing) { - poll_wait(file, &av7110->aout.queue, wait); + poll_wait(file, &av7110->aout.queue, wait); + if (av7110->playing) { if (dvb_ringbuffer_free(&av7110->aout)>20*1024) mask |= (POLLOUT | POLLWRNORM); } else /* if not playing: may play if asked for */ @@ -3153,10 +3153,9 @@ unsigned int dvb_ca_poll (struct file *file, poll_table *wait) { struct dvb_device *dvbdev = (struct dvb_device *) file->private_data; av7110_t *av7110 = (av7110_t *) dvbdev->priv; - unsigned int mask = 0; - dvb_ringbuffer_t *rbuf = &av7110->ci_rbuffer; dvb_ringbuffer_t *wbuf = &av7110->ci_wbuffer; + unsigned int mask = 0; DEB_EE(("av7110: %p\n",av7110)); @@ -3296,8 +3295,9 @@ unsigned int dvb_video_poll(struct file *file, poll_table *wait) DEB_EE(("av7110: %p\n",av7110)); - if (av7110->playing) { - poll_wait(file, &av7110->avout.queue, wait); + poll_wait(file, &av7110->avout.queue, wait); + + if (av7110->playing) { if (FREE_COND) mask |= (POLLOUT | POLLWRNORM); } else /* if not playing: may play if asked for */ |