Commit 25e99299 authored by alex's avatar alex

disconnect new feeder if feed is already being received

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8271 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ebc3b2fb
...@@ -1299,6 +1299,12 @@ static int http_parse_request(HTTPContext *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) { if (c->post == 0 && stream->stream_type == STREAM_TYPE_LIVE) {
current_bandwidth += stream->bandwidth; current_bandwidth += stream->bandwidth;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment