mirror of
https://github.com/mpv-player/mpv
synced 2025-02-28 11:20:56 +00:00
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:
parent
460ef9c7a4
commit
3d1b9ba4bd
@ -621,6 +621,10 @@ static int dvb_streaming_read(stream_t *stream, char *buffer, int size)
|
|||||||
if ((rk = read(fd, &buffer[pos], rk)) > 0) {
|
if ((rk = read(fd, &buffer[pos], rk)) > 0) {
|
||||||
pos += rk;
|
pos += rk;
|
||||||
MP_TRACE(stream, "ret (%d) bytes\n", pos);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user