diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-30 01:46:06 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-30 01:46:06 +0000 |
commit | c1593d0e56c12ea731d14f965b1a99a77c7f9fdb (patch) | |
tree | 2843a101e27536da6ea09db8e588df9a04fb8bcb /ffserver.c | |
parent | 084a89129294c07f2cd49c0fb7eae6a72f5e0aff (diff) | |
download | ffmpeg-c1593d0e56c12ea731d14f965b1a99a77c7f9fdb.tar.gz |
wake up connections to stop waiting when feed is being closed
Originally committed as revision 13547 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c index 04c16a0822..acce0b3407 100644 --- 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; } |