# HG changeset patch # User reimar # Date 1181288736 0 # Node ID 056c2968b14873fae5d87f98bd197a1a83b403d0 # Parent f6b20f40a8546f615316cc7d548b4ea90b5a5100 Set errno to 0 after printing it, not before diff -r f6b20f40a854 -r 056c2968b148 stream/stream_dvb.c --- a/stream/stream_dvb.c Fri Jun 08 06:08:51 2007 +0000 +++ b/stream/stream_dvb.c Fri Jun 08 07:45:36 2007 +0000 @@ -444,8 +444,8 @@ rk = size - pos; if(poll(pfds, 1, 500) <= 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; - 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); if(--tries > 0) continue; else