Commit 2f3e94f8 authored by Max Kellermann's avatar Max Kellermann

output/MultipleOutputs: add method IsOpen()

parent f616bfe3
......@@ -172,7 +172,7 @@ MultipleOutputs::Update(bool force) noexcept
{
bool ret = false;
if (!input_audio_format.IsDefined())
if (!IsOpen())
return false;
for (const auto &ao : outputs)
......
......@@ -156,6 +156,15 @@ public:
private:
/**
* Was Open() called successfully?
*
* This method may only be called from the player thread.
*/
bool IsOpen() const noexcept {
return input_audio_format.IsDefined();
}
/**
* Wait until all (active) outputs have finished the current
* command.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment