[Ffmpeg-cvslog] r8271 - trunk/ffserver.c

alex subversion
Tue Mar 6 14:29:04 CET 2007


Author: alex
Date: Tue Mar  6 14:29:04 2007
New Revision: 8271

Modified:
   trunk/ffserver.c

Log:
disconnect new feeder if feed is already being received

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Tue Mar  6 14:29:04 2007
@@ -1299,6 +1299,12 @@ static int http_parse_request(HTTPContex
         }
     }
 
+    /* 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;
     }




More information about the ffmpeg-cvslog mailing list