Use uchardet to guess encoding of subtitle files and reject non-UTF-8.
[dcpomatic.git] / src / lib / audio_point.h
index 3dfe4701fa87814b04e07f8aa5ddca64a57ca089..de8538ebe43c87da6c1ee87abbef7ca4541c933e 100644 (file)
@@ -17,6 +17,9 @@
 
 */
 
+#ifndef DCPOMATIC_AUDIO_POINT_H
+#define DCPOMATIC_AUDIO_POINT_H
+
 #include <libcxml/cxml.h>
 
 namespace xmlpp {
@@ -39,10 +42,12 @@ public:
 
        void as_xml (xmlpp::Element *) const;
 
-       float& operator[] (int t) {
+       inline float& operator[] (int t) {
                return _data[t];
        }
 
 private:
        float _data[COUNT];
 };
+
+#endif