summaryrefslogtreecommitdiff
path: root/src/output/Source.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-12-26 20:10:00 +0100
committerMax Kellermann <max@musicpd.org>2016-12-26 20:10:00 +0100
commit3fa6dc71e21fde5e66928b9e7ce8ea7d66fc6e1f (patch)
treec26a7da897975903cc28b3ecc7824b74facda723 /src/output/Source.hxx
parent6fec269844b4e3e73a2c3223e8d4e3daaa75effc (diff)
output/Source: add assertion
Diffstat (limited to 'src/output/Source.hxx')
-rw-r--r--src/output/Source.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/output/Source.hxx b/src/output/Source.hxx
index 9209d8837..3caa16d7b 100644
--- a/src/output/Source.hxx
+++ b/src/output/Source.hxx
@@ -128,6 +128,8 @@ public:
}
const AudioFormat &GetInputAudioFormat() const {
+ assert(IsOpen());
+
return in_audio_format;
}