| Summary: | [GStreamer] ASSERTION FAILED: end.isValid() in PlatformTimeRanges::add | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> | ||||
| Component: | WebKitGTK | Assignee: | Fujii Hironori <Hironori.Fujii> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | aboya, bugs-noreply, calvaris, mcatanzaro | ||||
| Priority: | P2 | ||||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=180253 | ||||||
| Attachments: |
|
||||||
|
Description
Fujii Hironori
2018-06-21 01:10:02 PDT
Created attachment 343227 [details]
Patch
This assertion failure is annoying. Looking into the code, I've found strange code in MediaPlayerPrivateGStreamer::buffered. I'd like to propose this patch. LGTM. Alicia, what do you think? Comment on attachment 343227 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=343227&action=review > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:1116 > + if (loaded.isValid() && loaded) LGTM. This will still create an empty [0, 0) range in some situations though. It maybe good to add `&& loaded > MediaTime::zeroTime()` to avoid that. (In reply to Alicia Boya García from comment #4) > Comment on attachment 343227 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=343227&action=review > > > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:1116 > > + if (loaded.isValid() && loaded) > > LGTM. This will still create an empty [0, 0) range in some situations > though. It maybe good to add `&& loaded > MediaTime::zeroTime()` to avoid > that. Nevermind, `loaded` already is true if different than zero. (In reply to Alicia Boya García from comment #5) > Nevermind, `loaded` already is true if different than zero. Agreed. Thank you for the review, Alicia. Committed r233033: <https://trac.webkit.org/changeset/233033> Comment on attachment 343227 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=343227&action=review > Source/WebCore/ChangeLog:18 > + No new tests (No behavior change). Nit: if there was no behavior change, then the execution of the program would not be visibly different. So there is definitely a behavior change: you fixed a crash! Instead, I would have mentioned that this fixed existing tests. |