From 9f827c99cb55914081463e20c2ff1ba51762cbe4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 21 Sep 2017 21:50:45 +0200 Subject: [PATCH] input/async: use class HugeArray instead of HugeAllocation --- src/input/AsyncInputStream.cxx | 2 +- src/input/AsyncInputStream.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/AsyncInputStream.cxx b/src/input/AsyncInputStream.cxx index 1792eb540..6d677d350 100644 --- a/src/input/AsyncInputStream.cxx +++ b/src/input/AsyncInputStream.cxx @@ -37,7 +37,7 @@ AsyncInputStream::AsyncInputStream(EventLoop &event_loop, const char *_url, deferred_resume(event_loop, BIND_THIS_METHOD(DeferredResume)), deferred_seek(event_loop, BIND_THIS_METHOD(DeferredSeek)), allocation(_buffer_size), - buffer((uint8_t *)allocation.get(), _buffer_size), + buffer(&allocation.front(), allocation.size()), resume_at(_resume_at) { allocation.ForkCow(false); diff --git a/src/input/AsyncInputStream.hxx b/src/input/AsyncInputStream.hxx index be29d0f4a..76a06d844 100644 --- a/src/input/AsyncInputStream.hxx +++ b/src/input/AsyncInputStream.hxx @@ -41,7 +41,7 @@ class AsyncInputStream : public InputStream { DeferredCall deferred_resume; DeferredCall deferred_seek; - HugeAllocation allocation; + HugeArray allocation; CircularBuffer buffer; const size_t resume_at;