X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=stream.cpp;h=4840b06b070b84eaf20e70053eff4c38efb86240;hp=e88ad779648e7639fd35a2926476eb446075cb1c;hb=bfc1a54cf84bb1784c14bd4f5acbb500460e35b5;hpb=979a284b4039b0ea74525b700b9f1089b8c4248d diff --git a/stream.cpp b/stream.cpp index e88ad77..4840b06 100644 --- a/stream.cpp +++ b/stream.cpp @@ -1,10 +1,11 @@ #include #include -#include #include +#include #include #include #include +#include #include #include @@ -226,6 +227,7 @@ void Stream::add_data_deferred(const char *data, size_t bytes, StreamStartSuitab if (suitable_for_stream_start == NOT_SUITABLE_FOR_STREAM_START) { hdr.flags |= htons(METACUBE_FLAGS_NOT_SUITABLE_FOR_STREAM_START); } + hdr.csum = htons(metacube2_compute_crc(&hdr)); iovec iov; iov.iov_base = new char[bytes + sizeof(hdr)];