X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=stream.cpp;h=42edee95aae01176e94c3a63ab47704a95b19a36;hb=e05f9f880fb97c3510546a60d57b5da0b0752591;hp=e88ad779648e7639fd35a2926476eb446075cb1c;hpb=22cd7233eabd1d012f29e890ec67c6b70a0d6753;p=cubemap 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)];