[Ffmpeg-cvslog] r8072 - trunk/ffserver.c
alex
subversion
Thu Feb 22 14:27:39 CET 2007
Author: alex
Date: Thu Feb 22 14:27:39 2007
New Revision: 8072
Modified:
trunk/ffserver.c
Log:
if feeder is disconnected, clear the feed registration, thus a new feeder can connect
Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c (original)
+++ trunk/ffserver.c Thu Feb 22 14:27:39 2007
@@ -762,6 +762,13 @@
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);
More information about the ffmpeg-cvslog
mailing list