Merge master.
[dcpomatic.git] / src / lib / dcpomatic_time.cc
index dcdfd97daf4a2d54b63210092de4220b217ed18a..812c756ec27891224495b1a57b3e374ee793321d 100644 (file)
@@ -55,3 +55,9 @@ ContentTimePeriod::overlaps (ContentTimePeriod const & other) const
 {
        return (from < other.to && to >= other.from);
 }
+
+bool
+ContentTimePeriod::contains (ContentTime const & other) const
+{
+       return (from <= other && other < to);
+}