[FFmpeg-cvslog] r23210 - trunk/ffserver.c

mstorsjo subversion
Fri May 21 09:59:12 CEST 2010


Author: mstorsjo
Date: Fri May 21 09:59:12 2010
New Revision: 23210

Log:
ffserver: Avoid busylooping while reading non-blocking input

Patch by Howard Chu, hyc at highlandsun dot com

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	Fri May 21 09:12:33 2010	(r23209)
+++ trunk/ffserver.c	Fri May 21 09:59:12 2010	(r23210)
@@ -2629,6 +2629,7 @@ static int http_receive_data(HTTPContext
                 ff_neterrno() != FF_NETERROR(EINTR))
                 /* error : close connection */
                 goto fail;
+            return 0;
         } else if (len == 0) {
             /* end of connection : close it */
             goto fail;



More information about the ffmpeg-cvslog mailing list