diff options
author | Oliver Freyermuth <o.freyermuth@googlemail.com> | 2015-01-13 00:53:12 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-13 02:37:12 +0100 |
commit | 3d1b9ba4bd20fcbcc7611ee713f5e2dd3ebc930b (patch) | |
tree | 4ca579eda529c3b82f527c9390cdc632a2a65491 /stream/stream_dvb.c | |
parent | 460ef9c7a4bd2527f7f17eb8c95eeff3b67455f8 (diff) | |
download | mpv-3d1b9ba4bd20fcbcc7611ee713f5e2dd3ebc930b.tar.bz2 mpv-3d1b9ba4bd20fcbcc7611ee713f5e2dd3ebc930b.tar.xz |
stream_dvb: Add MP_ERR if polling worked, but read fails.
Read can still fail, e.g. if the buffer is invalid.
Diffstat (limited to 'stream/stream_dvb.c')
-rw-r--r-- | stream/stream_dvb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c index 66c762a75e..419f371204 100644 --- a/stream/stream_dvb.c +++ b/stream/stream_dvb.c @@ -621,6 +621,10 @@ static int dvb_streaming_read(stream_t *stream, char *buffer, int size) if ((rk = read(fd, &buffer[pos], rk)) > 0) { pos += rk; MP_TRACE(stream, "ret (%d) bytes\n", pos); + } else { + MP_ERR(stream, "dvb_streaming_read, poll ok but read failed with " + "errno %d when reading %d bytes, size: %d, pos: %d\n", + errno, size - pos, size, pos); } } |