Commit 99a447df authored by Max Kellermann's avatar Max Kellermann

input/async: use C++11 initializers

parent 56a9bf45
......@@ -38,11 +38,7 @@ AsyncInputStream::AsyncInputStream(EventLoop &event_loop, const char *_url,
deferred_seek(event_loop, BIND_THIS_METHOD(DeferredSeek)),
allocation(_buffer_size),
buffer((uint8_t *)allocation.get(), _buffer_size),
resume_at(_resume_at),
open(true),
paused(false),
seek_state(SeekState::NONE),
tag(nullptr) {}
resume_at(_resume_at) {}
AsyncInputStream::~AsyncInputStream()
{
......
......@@ -46,22 +46,22 @@ class AsyncInputStream : public InputStream {
CircularBuffer<uint8_t> buffer;
const size_t resume_at;
bool open;
bool open = true;
/**
* Is the connection currently paused? That happens when the
* buffer was getting too large. It will be unpaused when the
* buffer is below the threshold again.
*/
bool paused;
bool paused = false;
SeekState seek_state;
SeekState seek_state = SeekState::NONE;
/**
* The #Tag object ready to be requested via
* InputStream::ReadTag().
*/
Tag *tag;
Tag *tag = nullptr;
offset_type seek_offset;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment