Skip to content

Commit

Permalink
input/mms: invoke Start() in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Jul 30, 2024
1 parent b050e01 commit 72b0eeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/input/plugins/MmsInputPlugin.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -57,9 +59,7 @@ static InputStreamPtr
input_mms_open(const char *url,
Mutex &mutex)
{
auto m = std::make_unique<MmsInputStream>(url, mutex);
m->Start();
return m;
return std::make_unique<MmsInputStream>(url, mutex);
}

std::size_t
Expand Down

0 comments on commit 72b0eeb

Please sign in to comment.