[Ffmpeg-cvslog] r8711 - trunk/ffserver.c

lucabe subversion
Tue Apr 10 16:40:03 CEST 2007


Author: lucabe
Date: Tue Apr 10 16:40:03 2007
New Revision: 8711

Modified:
   trunk/ffserver.c

Log:
Fix the poll() loop (ret == 0 means that a timeout expired, so it must be
handled)


Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Tue Apr 10 16:40:03 2007
@@ -594,7 +594,7 @@ static int http_server(void)
             ret = poll(poll_table, poll_entry - poll_table, delay);
             if (ret < 0 && errno != EAGAIN && errno != EINTR)
                 return -1;
-        } while (ret <= 0);
+        } while (ret < 0);
 
         cur_time = av_gettime() / 1000;
 




More information about the ffmpeg-cvslog mailing list