mirror of https://github.com/mpv-player/mpv
Set errno to 0 after printing it, not before
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23506 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f619fb233b
commit
fdf74e7399
|
@ -444,8 +444,8 @@ static int dvb_streaming_read(stream_t *stream, char *buffer, int size)
|
|||
rk = size - pos;
|
||||
if(poll(pfds, 1, 500) <= 0)
|
||||
{
|
||||
errno = 0;
|
||||
mp_msg(MSGT_DEMUX, MSGL_ERR, "dvb_streaming_read, attempt N. %d failed with errno %d when reading %d bytes\n", tries, errno, size-pos);
|
||||
errno = 0;
|
||||
if(--tries > 0)
|
||||
continue;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue