summaryrefslogtreecommitdiff
path: root/src/output/MultipleOutputs.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-09-26 14:52:19 +0200
committerMax Kellermann <max@musicpd.org>2019-09-26 14:52:19 +0200
commit2f3e94f8d089f676bc319499f784b3d32c19637e (patch)
tree14f20666bfbc44041b693c0ee77d41d20133ff0e /src/output/MultipleOutputs.hxx
parentf616bfe35481192f45b03c968229c5aacc129e33 (diff)
output/MultipleOutputs: add method IsOpen()
Diffstat (limited to 'src/output/MultipleOutputs.hxx')
-rw-r--r--src/output/MultipleOutputs.hxx9
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.
*/