aboutsummaryrefslogtreecommitdiffstats
path: root/ffserver.c
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2007-03-06 13:29:04 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2007-03-06 13:29:04 +0000
commitd0a5513b8812716537ea1ed1f2231f03978d22cb (patch)
treee60a396f8563619ad156e3824caa2f938dad7872 /ffserver.c
parentc6e3365c819556e57d5aff901381804c4c91a253 (diff)
downloadffmpeg-d0a5513b8812716537ea1ed1f2231f03978d22cb.tar.gz
disconnect new feeder if feed is already being received
Originally committed as revision 8271 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c
index ccbf41f3b8..6a597d94fa 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -1299,6 +1299,12 @@ static int http_parse_request(HTTPContext *c)
}
}
+ /* If already streaming this feed, dont let start an another feeder */
+ if (stream->feed_opened) {
+ snprintf(msg, sizeof(msg), "This feed is already being received.");
+ goto send_error;
+ }
+
if (c->post == 0 && stream->stream_type == STREAM_TYPE_LIVE) {
current_bandwidth += stream->bandwidth;
}