From 72b0eeb7b1328098364a685137d03c3106a1411b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 30 Jul 2024 12:31:33 +0200 Subject: [PATCH] input/mms: invoke Start() in constructor --- src/input/plugins/MmsInputPlugin.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/input/plugins/MmsInputPlugin.cxx b/src/input/plugins/MmsInputPlugin.cxx index c71a6f89c..1e100edc1 100644 --- a/src/input/plugins/MmsInputPlugin.cxx +++ b/src/input/plugins/MmsInputPlugin.cxx @@ -18,7 +18,9 @@ class MmsInputStream final : public ThreadInputStream { public: MmsInputStream(const char *_uri, Mutex &_mutex) :ThreadInputStream(input_plugin_mms.name, _uri, _mutex, - MMS_BUFFER_SIZE) { + MMS_BUFFER_SIZE) + { + Start(); } ~MmsInputStream() noexcept override { @@ -57,9 +59,7 @@ static InputStreamPtr input_mms_open(const char *url, Mutex &mutex) { - auto m = std::make_unique(url, mutex); - m->Start(); - return m; + return std::make_unique(url, mutex); } std::size_t