diff options
author | Max Kellermann <max@musicpd.org> | 2017-01-06 11:17:55 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-01-06 11:17:55 +0100 |
commit | 9cfc52f11453f8a4436700b2903c10c4749e3714 (patch) | |
tree | e47a008bf4b5e48c159eb882840768ff932a628c /src/filter | |
parent | 30bfb756c2e3c111ba83ebe2f7b93060f7a39643 (diff) |
filter/Internal: add assertion to constructor
Diffstat (limited to 'src/filter')
-rw-r--r-- | src/filter/FilterInternal.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/filter/FilterInternal.hxx b/src/filter/FilterInternal.hxx index 2961953e8..b03403ecc 100644 --- a/src/filter/FilterInternal.hxx +++ b/src/filter/FilterInternal.hxx @@ -27,6 +27,7 @@ #include "AudioFormat.hxx" +#include <assert.h> #include <stddef.h> struct AudioFormat; @@ -38,7 +39,9 @@ protected: Filter() = default; explicit Filter(AudioFormat _out_audio_format) - :out_audio_format(_out_audio_format) {} + :out_audio_format(_out_audio_format) { + assert(out_audio_format.IsValid()); + } public: virtual ~Filter() {} |