Browse Source

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
tags/v0.5
Alex Beregszaszi 18 years ago
parent
commit
5400e0923a
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      ffserver.c

+ 7
- 0
ffserver.c View File

@@ -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);


Loading…
Cancel
Save