Don't edit start trim unless it's necessary.
[dcpomatic.git] / src / lib / resampler.h
index 5a3a7fa40406c8dca974fa61da7cb4c18a71b8f6..95b71c222e814570a8f1a5bc6cf92bfb7244df5f 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.
 
@@ -19,8 +19,8 @@
 */
 
 
-#include "types.h"
 #include <samplerate.h>
+#include <memory>
 
 
 class AudioBuffers;
@@ -41,7 +41,7 @@ public:
        void set_fast ();
 
 private:
-       SRC_STATE* _src;
+       SRC_STATE* _src = nullptr;
        int _in_rate;
        int _out_rate;
        int _channels;