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;