summaryrefslogtreecommitdiff
path: root/src/input/input_stdin_fifo.c
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2001-10-05 17:36:28 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2001-10-05 17:36:28 +0000
commite723efae2fcbfa501639fb6909ed0e8a662e79b8 (patch)
tree8cde0b63135d06b081b29690cec9e66398569def /src/input/input_stdin_fifo.c
parent6bcad7f23a837a3550843b65e2a19b4568ac5113 (diff)
downloadxine-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_stdin_fifo.c')
-rw-r--r--src/input/input_stdin_fifo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/input_stdin_fifo.c b/src/input/input_stdin_fifo.c
index 5969d28bb..57abf7005 100644
--- a/src/input/input_stdin_fifo.c
+++ b/src/input/input_stdin_fifo.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: input_stdin_fifo.c,v 1.12 2001/09/08 00:44:40 guenter Exp $
+ * $Id: input_stdin_fifo.c,v 1.13 2001/10/05 17:36:28 jkeil Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -116,7 +116,7 @@ static off_t stdin_plugin_read (input_plugin_t *this_gen,
num_bytes = read (this->fh, &buf[total_bytes], todo - total_bytes);
if(num_bytes < 0) {
- this->curpos += num_bytes;
+ this->curpos += total_bytes;
return num_bytes;
}
else if (!num_bytes) {