input/mms: move MMS_BUFFER_SIZE into the class

This commit is contained in:
Max Kellermann 2024-07-30 12:33:02 +02:00
parent 72b0eeb7b1
commit dc51015c75

View File

@ -10,15 +10,15 @@
#include <stdexcept>
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();
}