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

bcoudurier subversion
Fri May 30 03:46:07 CEST 2008


Author: bcoudurier
Date: Fri May 30 03:46:06 2008
New Revision: 13547

Log:
wake up connections to stop waiting when feed is being closed

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Fri May 30 03:46:06 2008
@@ -2477,6 +2477,12 @@ static int http_receive_data(HTTPContext
  fail:
     c->stream->feed_opened = 0;
     close(c->feed_fd);
+    /* wake up any waiting connections to stop waiting for feed */
+    for(c1 = first_http_ctx; c1 != NULL; c1 = c1->next) {
+        if (c1->state == HTTPSTATE_WAIT_FEED &&
+            c1->stream->feed == c->stream->feed)
+            c1->state = HTTPSTATE_SEND_DATA_TRAILER;
+    }
     return -1;
 }
 




More information about the ffmpeg-cvslog mailing list