Hopefully improve subtitle decoder seeking etc.
[dcpomatic.git] / src / lib / dcpomatic_time.cc
index 98888646d0a841e26bcb077a426be8ac66e1e8e4..dcdfd97daf4a2d54b63210092de4220b217ed18a 100644 (file)
@@ -49,3 +49,9 @@ operator<< (ostream& s, DCPTime t)
        s << "[DCP " << t.get() << " " << t.seconds() << "s]";
        return s;
 }
+
+bool
+ContentTimePeriod::overlaps (ContentTimePeriod const & other) const
+{
+       return (from < other.to && to >= other.from);
+}