From fdf74e7399468b0ac74e6b79d69805732b783313 Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 8 Jun 2007 07:45:36 +0000 Subject: [PATCH] Set errno to 0 after printing it, not before git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23506 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_dvb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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