filter/Internal: add assertion to constructor

This commit is contained in:
Max Kellermann 2017-01-06 11:17:55 +01:00
parent 30bfb756c2
commit 9cfc52f114
1 changed files with 4 additions and 1 deletions

View File

@ -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() {}