-
- // If there are clients we haven't sent anything to yet, we should give
- // them the header, so push back into the SENDING_HEADER state.
- for (map<int, Client>::iterator client_it = clients.begin();
- client_it != clients.end();
- ++client_it) {
- Client *client = &client_it->second;
- if (client->state == Client::WAITING_FOR_KEYFRAME ||
- (client->state == Client::SENDING_DATA &&
- client->stream_pos == 0)) {
- construct_header(client);
- }
- }