diff options
author | Holger Waechtler <devnull@localhost> | 2002-10-21 16:55:36 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2002-10-21 16:55:36 +0000 |
commit | 088bbfc7d9b89cabab8993c5ddc9f24508a97cac (patch) | |
tree | 0b7b8b6d08403d39b44688ffc04ad9ef9f596490 /linux/drivers/media | |
parent | eef421e2b6b5f49df7ac5a1ecc7596d31b8578aa (diff) | |
download | mediapointer-dvb-s2-088bbfc7d9b89cabab8993c5ddc9f24508a97cac.tar.gz mediapointer-dvb-s2-088bbfc7d9b89cabab8993c5ddc9f24508a97cac.tar.bz2 |
reset ringbuffer on error in read() callback too
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dmxdev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dmxdev.c b/linux/drivers/media/dvb/dvb-core/dmxdev.c index 4fd88123b..85681063a 100644 --- a/linux/drivers/media/dvb/dvb-core/dmxdev.c +++ b/linux/drivers/media/dvb/dvb-core/dmxdev.c @@ -109,7 +109,8 @@ dvb_dmxdev_buffer_read(dmxdev_buffer_t *src, int non_blocking, return 0; if ((error=src->error)) { - src->error=0; + src->pwrite=src->pread; + src->error=0; return error; } @@ -126,6 +127,7 @@ dvb_dmxdev_buffer_read(dmxdev_buffer_t *src, int non_blocking, return count-todo; if ((error=src->error)) { + src->pwrite=src->pread; src->error=0; return error; } |