summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvb.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-08 07:45:36 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-08 07:45:36 +0000
commitfdf74e7399468b0ac74e6b79d69805732b783313 (patch)
tree4030acecd9528aa0de613e5817c8a4e384031b79 /stream/stream_dvb.c
parentf619fb233ba8bf8f76ebb45c6a948519a894c807 (diff)
downloadmpv-fdf74e7399468b0ac74e6b79d69805732b783313.tar.bz2
mpv-fdf74e7399468b0ac74e6b79d69805732b783313.tar.xz
Set errno to 0 after printing it, not before
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23506 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvb.c')
-rw-r--r--stream/stream_dvb.c2
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