From dc51015c75f20f8304f1838b8ff8116db773c662 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 30 Jul 2024 12:33:02 +0200 Subject: [PATCH] input/mms: move MMS_BUFFER_SIZE into the class --- src/input/plugins/MmsInputPlugin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/input/plugins/MmsInputPlugin.cxx b/src/input/plugins/MmsInputPlugin.cxx index 1e100edc1..2cd340a3a 100644 --- a/src/input/plugins/MmsInputPlugin.cxx +++ b/src/input/plugins/MmsInputPlugin.cxx @@ -10,15 +10,15 @@ #include -static constexpr size_t MMS_BUFFER_SIZE = 256 * 1024; - class MmsInputStream final : public ThreadInputStream { + static constexpr std::size_t BUFFER_SIZE = 256 * 1024; + mmsx_t *mms; public: MmsInputStream(const char *_uri, Mutex &_mutex) :ThreadInputStream(input_plugin_mms.name, _uri, _mutex, - MMS_BUFFER_SIZE) + BUFFER_SIZE) { Start(); }