Commit 9cfc52f1 authored by Max Kellermann's avatar Max Kellermann

filter/Internal: add assertion to constructor

parent 30bfb756
......@@ -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() {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment