filter/Internal: add assertion to constructor
This commit is contained in:
parent
30bfb756c2
commit
9cfc52f114
|
@ -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() {}
|
||||
|
|
Loading…
Reference in New Issue