X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=stream.cpp;h=42edee95aae01176e94c3a63ab47704a95b19a36;hp=e88ad779648e7639fd35a2926476eb446075cb1c;hb=74cd48ffef90d7d0752e37a4515e4ecfb68f7c9d;hpb=979a284b4039b0ea74525b700b9f1089b8c4248d diff --git a/stream.cpp b/stream.cpp index e88ad77..42edee9 100644 --- a/stream.cpp +++ b/stream.cpp @@ -226,6 +226,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)];