diff options
author | Juergen Keil <jkeil@users.sourceforge.net> | 2001-10-05 17:36:28 +0000 |
---|---|---|
committer | Juergen Keil <jkeil@users.sourceforge.net> | 2001-10-05 17:36:28 +0000 |
commit | e723efae2fcbfa501639fb6909ed0e8a662e79b8 (patch) | |
tree | 8cde0b63135d06b081b29690cec9e66398569def /src/input/input_net.c | |
parent | 6bcad7f23a837a3550843b65e2a19b4568ac5113 (diff) | |
download | xine-lib-e723efae2fcbfa501639fb6909ed0e8a662e79b8.tar.gz xine-lib-e723efae2fcbfa501639fb6909ed0e8a662e79b8.tar.bz2 |
Errors returned from read(2) system call were ignored in most input plugins
(e.g. when accessing an encrypted dvd without proper dvd drive authentication).
Print error messages, and try to handle read errors.
CVS patchset: 741
CVS date: 2001/10/05 17:36:28
Diffstat (limited to 'src/input/input_net.c')
-rw-r--r-- | src/input/input_net.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input/input_net.c b/src/input/input_net.c index e6cd76f14..6266fd305 100644 --- a/src/input/input_net.c +++ b/src/input/input_net.c @@ -196,7 +196,8 @@ static off_t net_plugin_read (input_plugin_t *this_gen, n = read (this->fh, buf, nlen); - this->curpos += n; + if (n > 0) + this->curpos += n; return n; } |