diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2007-02-22 13:27:39 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2007-02-22 13:27:39 +0000 |
commit | 5400e0923ab989a1bf377f1aa48c0f1ed6c3ac91 (patch) | |
tree | 8048b0dada3e8db6d9f3e2dd811944bb4964d329 /ffserver.c | |
parent | 038a1243a2cc78373631665790c0e82f65cbcc1a (diff) | |
download | ffmpeg-5400e0923ab989a1bf377f1aa48c0f1ed6c3ac91.tar.gz |
if feeder is disconnected, clear the feed registration, thus a new feeder can connect
Originally committed as revision 8072 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c index 94751e7db7..ba87f3598b 100644 --- a/ffserver.c +++ b/ffserver.c @@ -762,6 +762,13 @@ static void close_connection(HTTPContext *c) if (c->stream && !c->post && c->stream->stream_type == STREAM_TYPE_LIVE) current_bandwidth -= c->stream->bandwidth; + + /* signal that there is no feed if we are the feeder socket */ + if (c->state == HTTPSTATE_RECEIVE_DATA && c->stream) { + c->stream->feed_opened = 0; + close(c->feed_fd); + } + av_freep(&c->pb_buffer); av_freep(&c->packet_buffer); av_free(c->buffer); |