X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=httpinput.cpp;h=0d94913d4f2c06c0f95b4eb18a0df781df1f1eb8;hb=1c6b126fe95eb0465383ba225da764757eba05c0;hp=e22e0a5970a25f3bc628ed77a6ff561f5620ad9f;hpb=4553a184fb72d199ad665f469b0ac693fb089701;p=cubemap diff --git a/httpinput.cpp b/httpinput.cpp index e22e0a5..0d94913 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -475,9 +475,15 @@ void HTTPInput::process_data(char *ptr, size_t bytes) for (size_t i = 0; i < stream_indices.size(); ++i) { servers->set_header(stream_indices[i], http_header, header); } - } else { + } else { + StreamStartSuitability suitable_for_stream_start; + if (flags & METACUBE_FLAGS_NOT_SUITABLE_FOR_STREAM_START) { + suitable_for_stream_start = NOT_SUITABLE_FOR_STREAM_START; + } else { + suitable_for_stream_start = SUITABLE_FOR_STREAM_START; + } for (size_t i = 0; i < stream_indices.size(); ++i) { - servers->add_data(stream_indices[i], inner_data, size); + servers->add_data(stream_indices[i], inner_data, size, suitable_for_stream_start); } }