]> git.sesse.net Git - cubemap/blobdiff - httpinput.cpp
When adding new streams that are copies of old streams, copy the HTTP header.
[cubemap] / httpinput.cpp
index b066b241c0b540aa4f5fc9245af98f84f82748fd..2fe68061b44c89e7b8a2811df8c5aff3369cb3bd 100644 (file)
@@ -539,6 +539,12 @@ void HTTPInput::drop_pending_data(size_t num_bytes)
        pending_data.erase(pending_data.begin(), pending_data.begin() + num_bytes);
 }
 
        pending_data.erase(pending_data.begin(), pending_data.begin() + num_bytes);
 }
 
+void HTTPInput::add_destination(int stream_index)
+{
+       stream_indices.push_back(stream_index);
+       servers->set_header(stream_index, http_header, "");
+}
+
 InputStats HTTPInput::get_stats() const
 {
        MutexLock lock(&stats_mutex);
 InputStats HTTPInput::get_stats() const
 {
        MutexLock lock(&stats_mutex);