In the case where we really are in WAITING_KEYFRAME, we will go to
sleep immediately in the state below, but there's also a case
where we could end up directly in SENDING_DATA and don't want to
wait for the stream to get more data to start sending.
stream->bytes_received - stream->backlog_size,
0);
client->state = Client::SENDING_DATA;
stream->bytes_received - stream->backlog_size,
0);
client->state = Client::SENDING_DATA;
} else {
client->stream_pos = stream->bytes_received;
client->state = Client::WAITING_FOR_KEYFRAME;
}
} else {
client->stream_pos = stream->bytes_received;
client->state = Client::WAITING_FOR_KEYFRAME;
}
- stream->put_client_to_sleep(client);
- return;
}
case Client::WAITING_FOR_KEYFRAME: {
Stream *stream = client->stream;
}
case Client::WAITING_FOR_KEYFRAME: {
Stream *stream = client->stream;
// Fall through.
}
case Client::SENDING_DATA: {
// Fall through.
}
case Client::SENDING_DATA: {
skip_lost_data(client);
Stream *stream = client->stream;
skip_lost_data(client);
Stream *stream = client->stream;