open-standards/wai/http-conformance/falsify/layer-after-uri.patch
2026-10-06 07:30:39 -04:00

17 lines
845 B
Diff

# must fail: media_playlist_playlists_o10_wai_a_m3u8 media_playlist_playlists_o11_wai_v_m3u8
# layer lines rendered after the segment's URI (hls_render::render_hls_with)
diff --git a/wai/wai-rs/src/hls_render.rs b/wai/wai-rs/src/hls_render.rs
index 7e29b8dd..3c910dc0 100644
--- a/wai/wai-rs/src/hls_render.rs
+++ b/wai/wai-rs/src/hls_render.rs
@@ -264,9 +264,9 @@ pub fn render_hls_with(segments: &[Segment], r: &HlsRender, extras: &[SegmentExt
}
// Fixed 3-dp seconds so the byte output is stable across platforms.
out.push_str(&format!("#EXTINF:{},\n", seconds(s.duration_ms)));
- layer_lines(&mut out, &e.layers);
out.push_str(&s.uri);
out.push('\n');
+ layer_lines(&mut out, &e.layers);
}
if let Some(open) = extras.get(segments.len()) {
if open.discontinuity {