提交 d0a5513b 编写于 作者: A Alex Beregszaszi

disconnect new feeder if feed is already being received

Originally committed as revision 8271 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 c6e3365c
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册