summaryrefslogtreecommitdiff
path: root/libs/timecode
diff options
context:
space:
mode:
Diffstat (limited to 'libs/timecode')
-rw-r--r--libs/timecode/timecode/time.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/timecode/timecode/time.h b/libs/timecode/timecode/time.h
index cd24001807..bcb078f3f1 100644
--- a/libs/timecode/timecode/time.h
+++ b/libs/timecode/timecode/time.h
@@ -52,6 +52,13 @@ struct Time {
subframes = 0;
rate = a_rate;
}
+
+ bool operator== (const Time& other) const {
+ return negative == other.negative && hours == other.hours &&
+ minutes == other.minutes && seconds == other.seconds &&
+ frames == other.frames && subframes == other.subframes &&
+ rate == other.rate && drop == other.drop;
+ }
std::ostream& print (std::ostream& ostr) const {
if (negative) {