diff --git a/src/input/AsyncInputStream.hxx b/src/input/AsyncInputStream.hxx index 29668a125..5d0aac31e 100644 --- a/src/input/AsyncInputStream.hxx +++ b/src/input/AsyncInputStream.hxx @@ -18,10 +18,6 @@ * the regular #InputStream API. */ class AsyncInputStream : public InputStream { - enum class SeekState : uint8_t { - NONE, SCHEDULED, PENDING - }; - InjectEvent deferred_resume; InjectEvent deferred_seek; @@ -30,6 +26,10 @@ class AsyncInputStream : public InputStream { CircularBuffer buffer; const size_t resume_at; + enum class SeekState : uint_least8_t { + NONE, SCHEDULED, PENDING + } seek_state = SeekState::NONE; + bool open = true; /** @@ -39,8 +39,6 @@ class AsyncInputStream : public InputStream { */ bool paused = false; - SeekState seek_state = SeekState::NONE; - /** * The #Tag object ready to be requested via * InputStream::ReadTag().