diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-08 07:45:36 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-08 07:45:36 +0000 |
commit | fdf74e7399468b0ac74e6b79d69805732b783313 (patch) | |
tree | 4030acecd9528aa0de613e5817c8a4e384031b79 | |
parent | f619fb233ba8bf8f76ebb45c6a948519a894c807 (diff) |
Set errno to 0 after printing it, not before
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23506 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | stream/stream_dvb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c index 154229b2fc..05236b2fce 100644 --- a/stream/stream_dvb.c +++ b/stream/stream_dvb.c @@ -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 |