Skip to content

Commit

Permalink
Events: fix handling of multiple timed events on a single track (#96)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
FelixMcFelix committed Sep 29, 2021
1 parent 562723f commit e25cc14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e25cc14

Please sign in to comment.