projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6e3365
)
disconnect new feeder if feed is already being received
author
Alex Beregszaszi
<alex@rtfs.hu>
Tue, 6 Mar 2007 13:29:04 +0000
(13:29 +0000)
committer
Alex Beregszaszi
<alex@rtfs.hu>
Tue, 6 Mar 2007 13:29:04 +0000
(13:29 +0000)
Originally committed as revision 8271 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffserver.c
patch
|
blob
|
history
diff --git
a/ffserver.c
b/ffserver.c
index ccbf41f3b869246572116aac946e73fe056310b8..6a597d94fa8ea76ba1a326f0a6335f0a774545ef 100644
(file)
--- 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;
}