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

filter/Internal: add assertion to constructor

parent 30bfb756
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include <assert.h>
#include <stddef.h> #include <stddef.h>
struct AudioFormat; struct AudioFormat;
...@@ -38,7 +39,9 @@ protected: ...@@ -38,7 +39,9 @@ protected:
Filter() = default; Filter() = default;
explicit Filter(AudioFormat _out_audio_format) explicit Filter(AudioFormat _out_audio_format)
:out_audio_format(_out_audio_format) {} :out_audio_format(_out_audio_format) {
assert(out_audio_format.IsValid());
}
public: public:
virtual ~Filter() {} 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