input/mms: invoke Start() in constructor
This commit is contained in:
parent
b050e0132e
commit
72b0eeb7b1
|
@ -18,7 +18,9 @@ class MmsInputStream final : public ThreadInputStream {
|
||||||
public:
|
public:
|
||||||
MmsInputStream(const char *_uri, Mutex &_mutex)
|
MmsInputStream(const char *_uri, Mutex &_mutex)
|
||||||
:ThreadInputStream(input_plugin_mms.name, _uri, _mutex,
|
:ThreadInputStream(input_plugin_mms.name, _uri, _mutex,
|
||||||
MMS_BUFFER_SIZE) {
|
MMS_BUFFER_SIZE)
|
||||||
|
{
|
||||||
|
Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
~MmsInputStream() noexcept override {
|
~MmsInputStream() noexcept override {
|
||||||
|
@ -57,9 +59,7 @@ static InputStreamPtr
|
||||||
input_mms_open(const char *url,
|
input_mms_open(const char *url,
|
||||||
Mutex &mutex)
|
Mutex &mutex)
|
||||||
{
|
{
|
||||||
auto m = std::make_unique<MmsInputStream>(url, mutex);
|
return std::make_unique<MmsInputStream>(url, mutex);
|
||||||
m->Start();
|
|
||||||
return m;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::size_t
|
std::size_t
|
||||||
|
|
Loading…
Reference in New Issue