diff options
Diffstat (limited to 'sound/timestamp.cpp')
-rw-r--r-- | sound/timestamp.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sound/timestamp.cpp b/sound/timestamp.cpp index a517462bb4..ad13d75c9f 100644 --- a/sound/timestamp.cpp +++ b/sound/timestamp.cpp @@ -66,11 +66,8 @@ Timestamp Timestamp::convertToFramerate(int newFramerate) const { } bool Timestamp::operator==(const Timestamp &ts) const { - // TODO: Alternatively, we could define equality to mean that - // two timestamps describe the exacts same moment in time. - return (_msecs == ts._msecs) && - (_numberOfFrames == ts._numberOfFrames) && - (_framerate == ts._framerate); + // TODO: Improve this + return (ts.msecs() == msecs()) && !frameDiff(ts); } bool Timestamp::operator!=(const Timestamp &ts) const { |