OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
084a891
)
wake up connections to stop waiting when feed is being closed
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Fri, 30 May 2008 01:46:06 +0000
(
01:46
+0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Fri, 30 May 2008 01:46:06 +0000
(
01:46
+0000)
Originally committed as revision 13547 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffserver.c
patch
|
blob
|
history
diff --git
a/ffserver.c
b/ffserver.c
index
04c16a0
..
acce0b3
100644
(file)
--- a/
ffserver.c
+++ b/
ffserver.c
@@
-2477,6
+2477,12
@@
static int http_receive_data(HTTPContext *c)
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;
}