Events: fix handling of multiple timed events on a single track (#96)

Fixes an issue where the `EventData` were not stored in reverse order, meaning that only the last added TimedEvent would be serviced.

This reverses the `Ord` for `EventData`, which should only be internally compared, allowing all timed events to be processed correctly in order.

Fixes #95.
This commit is contained in:
Kyle Simpson
2021-09-29 09:51:39 +01:00
committed by GitHub
parent 562723f4b1
commit e25cc140b8

View File

@@ -66,7 +66,7 @@ impl Ord for EventData {
.as_ref()
.expect("T2 known to be well-defined by above.");
t1.cmp(t2)
t2.cmp(t1)
} else {
Ordering::Equal
}