From ee1346294bd78efbba2b4f9108585467eee43f5a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 18 Aug 2013 13:46:22 +0200 Subject: [PATCH] Fix an issue where rewind-to-HTTP-header would not properly work. --- server.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server.cpp b/server.cpp index 4442b34..8790633 100644 --- a/server.cpp +++ b/server.cpp @@ -255,8 +255,9 @@ void Server::set_header(int stream_index, const string &http_header, const strin client_it != clients.end(); ++client_it) { Client *client = &client_it->second; - if (client->state == Client::SENDING_DATA && - client->stream_pos == 0) { + if (client->state == Client::WAITING_FOR_KEYFRAME || + (client->state == Client::SENDING_DATA && + client->stream_pos == 0)) { construct_header(client); } } -- 2.39.2