Tidy a little and use some std::vector instead of raw arrays.
[dcpomatic.git] / src / lib / resampler.h
index 5a3a7fa40406c8dca974fa61da7cb4c18a71b8f6..0dbd0b491edaa3c3b64d0ad00291ef0dca95ce91 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -41,7 +41,7 @@ public:
        void set_fast ();
 
 private:
-       SRC_STATE* _src;
+       SRC_STATE* _src = nullptr;
        int _in_rate;
        int _out_rate;
        int _channels;