Fix overlapping burnt-in subtitles in some cases (#959).
[dcpomatic.git] / src / lib / dcpomatic_time.h
index 7dbde46b7b2698f73724d518d7298eb3ff17433e..da903cf09316e0e34865e62a5443a7ff1ba5b64e 100644 (file)
@@ -32,6 +32,7 @@
 #include <cmath>
 #include <ostream>
 #include <iomanip>
+#include <cstdio>
 
 class dcpomatic_round_up_test;
 
@@ -274,6 +275,10 @@ public:
        bool operator== (TimePeriod<T> const & other) const {
                return from == other.from && to == other.to;
        }
+
+       bool operator!= (TimePeriod<T> const & other) const {
+               return !(*this == other);
+       }
 };
 
 typedef TimePeriod<ContentTime> ContentTimePeriod;