Implement Timestamp::operator== as equality in time.

svn-id: r47054
This commit is contained in:
Johannes Schickel 2010-01-05 22:01:05 +00:00
parent 664ace90e7
commit 7591a09365

View File

@ -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 {