diff options
author | Max Kellermann <max@musicpd.org> | 2019-09-26 14:52:19 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-09-26 14:52:19 +0200 |
commit | 2f3e94f8d089f676bc319499f784b3d32c19637e (patch) | |
tree | 14f20666bfbc44041b693c0ee77d41d20133ff0e /src/output/MultipleOutputs.hxx | |
parent | f616bfe35481192f45b03c968229c5aacc129e33 (diff) |
output/MultipleOutputs: add method IsOpen()
Diffstat (limited to 'src/output/MultipleOutputs.hxx')
-rw-r--r-- | src/output/MultipleOutputs.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/output/MultipleOutputs.hxx b/src/output/MultipleOutputs.hxx index cc9b30d14..73e3ac00d 100644 --- a/src/output/MultipleOutputs.hxx +++ b/src/output/MultipleOutputs.hxx @@ -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. */ |