stream_dvb: Add MP_ERR if polling worked, but read fails.

Read can still fail, e.g. if the buffer is invalid.
This commit is contained in:
Oliver Freyermuth 2015-01-13 00:53:12 +01:00 committed by wm4
parent 460ef9c7a4
commit 3d1b9ba4bd
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}
}