14 lines
788 B
Diff
14 lines
788 B
Diff
# must fail: dash_adjacency_out_of_order
|
|
# the classical cursor reset for each WAI run: segments out of order accepted (dash_read::within)
|
|
diff --git a/wai/wai-rs/src/http_binding/dash_read.rs b/wai/wai-rs/src/http_binding/dash_read.rs
|
|
index 71e36cde..7a416543 100644
|
|
--- a/wai/wai-rs/src/http_binding/dash_read.rs
|
|
+++ b/wai/wai-rs/src/http_binding/dash_read.rs
|
|
@@ -477,6 +477,7 @@ fn within(wai: &[Run], classical: &[Run]) -> bool {
|
|
// The classical cursor: a run, and the segments of it already passed.
|
|
let (mut ci, mut co) = (0usize, 0u128);
|
|
for w in wai {
|
|
+ (ci, co) = (0, 0);
|
|
let (mut t, mut left) = (u128::from(w.t), u128::from(w.count));
|
|
while left > 0 {
|
|
// The first classical segment at or after the cursor whose time is `t`.
|