From f54210bf68648b7a3f59b79a844c6ac308edbabc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Jul 2024 22:03:03 +0200 Subject: [PATCH] input/async: move enum definition down --- src/input/AsyncInputStream.hxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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().