Do not serialize prebuffering_bytes in StreamProto.
[cubemap] / stream.cpp
index 3a4ccc3..0b494fb 100644 (file)
@@ -46,7 +46,6 @@ Stream::Stream(const StreamProto &serialized, int data_fd)
          encoding(Stream::STREAM_ENCODING_RAW),  // Will be changed later.
          data_fd(data_fd),
          backlog_size(serialized.backlog_size()),
-         prebuffering_bytes(serialized.prebuffering_bytes()),
          bytes_received(serialized.bytes_received())
 {
        if (data_fd == -1) {
@@ -71,7 +70,6 @@ StreamProto Stream::serialize()
        serialized.set_stream_header(stream_header);
        serialized.add_data_fds(data_fd);
        serialized.set_backlog_size(backlog_size);
-       serialized.set_prebuffering_bytes(prebuffering_bytes);
        serialized.set_bytes_received(bytes_received);
        for (size_t point : suitable_starting_points) {
                serialized.add_suitable_starting_point(point);