Revision d8f28a77 ffserver.c

View differences:

ffserver.c
1355 1355
        }
1356 1356
    }
1357 1357

  
1358
    if (c->post == 0 && stream->stream_type == STREAM_TYPE_LIVE)
1359
        current_bandwidth += stream->bandwidth;
1360

  
1358 1361
    /* If already streaming this feed, do not let start another feeder. */
1359 1362
    if (stream->feed_opened) {
1360 1363
        snprintf(msg, sizeof(msg), "This feed is already being received.");
......
1362 1365
        goto send_error;
1363 1366
    }
1364 1367

  
1365
    if (c->post == 0 && stream->stream_type == STREAM_TYPE_LIVE)
1366
        current_bandwidth += stream->bandwidth;
1367

  
1368 1368
    if (c->post == 0 && max_bandwidth < current_bandwidth) {
1369 1369
        c->http_error = 200;
1370 1370
        q = c->buffer;

Also available in: Unified diff