[MPlayer-cvslog] r23506 - trunk/stream/stream_dvb.c

reimar subversion at mplayerhq.hu
Fri Jun 8 09:45:36 CEST 2007


Author: reimar
Date: Fri Jun  8 09:45:36 2007
New Revision: 23506

Log:
Set errno to 0 after printing it, not before


Modified:
   trunk/stream/stream_dvb.c

Modified: trunk/stream/stream_dvb.c
==============================================================================
--- trunk/stream/stream_dvb.c	(original)
+++ trunk/stream/stream_dvb.c	Fri Jun  8 09:45:36 2007
@@ -444,8 +444,8 @@ static int dvb_streaming_read(stream_t *
 		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



More information about the MPlayer-cvslog mailing list