Bug 297177

Summary: [GStreamer][MSE] media/media-source/media-source-init-segment-duration.html is failing
Product: WebKit Reporter: Diego Pino <dpino>
Component: PlatformAssignee: Diego Pino <dpino>
Status: NEW    
Severity: Normal CC: bugs-noreply, philn
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=171726

Diego Pino
Reported 2025-08-09 14:06:26 PDT
This test has been failing for a long time, but it was filed under an unrelated bug (https://bugs.webkit.org/show_bug.cgi?id=171726): https://results.webkit.org/?platform=GTK&platform=WPE&&suite=layout-tests&test=media/media-source/media-source-init-segment-duration.html&limit=4000 Diff: https://build.webkit.org/results/WPE-Linux-64-bit-Release-Tests/298473%40main%20%2822275%29/media/media-source/media-source-init-segment-duration-diff.txt --- /home/buildbot/worker/WPE-Linux-64-bit-Release-Tests/build/layout-test-results/media/media-source/media-source-init-segment-duration-expected.txt +++ /home/buildbot/worker/WPE-Linux-64-bit-Release-Tests/build/layout-test-results/media/media-source/media-source-init-segment-duration-actual.txt @@ -5,6 +5,6 @@ RUN(sourceBuffer = source.addSourceBuffer(loader.type())) RUN(sourceBuffer.appendBuffer(loader.initSegment())) EVENT(update) -EXPECTED (video.duration == '10') OK +EXPECTED (video.duration == '10'), OBSERVED '10.049' FAIL END OF TEST
Attachments
Diego Pino
Comment 1 2026-02-12 14:17:42 PST
Opening this video ('LayoutTests/media/media-source/content/test-fragmented.mp4') in different browsers, returns a different length. For instance, opening this video in Google Chrome and inspecting `video.duration` using developer tools returns a length of 10 seconds. However, doing the same on Firefox returns a video length of 10.049 seconds (same length as WebKit). So I think the test should be changed and use a '>=' operator (instead of '==') to compare the video length. This is what other similar tests do, for instance: LayoutTests/media/encrypted-media/encrypted-media-append-clear-encrypted.html.
Diego Pino
Comment 2 2026-02-13 01:16:33 PST
Note You need to log in before you can comment on or make changes to this bug.