| Summary: | [GStreamer] Several media related tests timing out around the same revision | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Miguel Gomez <magomez> | ||||
| Component: | WebKitGTK | Assignee: | Philippe Normand <pnormand> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | bugs-noreply, calvaris, cgarcia, pnormand | ||||
| Priority: | P2 | ||||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Miguel Gomez
2018-09-06 07:46:14 PDT
Phil, could you give it a look and check whether your change could be causing the timeouts? If not, just call me crazy and close the bug ;) It's possible yes :) I'll try to check this, soon... I almost have a patch. *** Bug 189340 has been marked as a duplicate of this bug. *** *** Bug 189341 has been marked as a duplicate of this bug. *** *** Bug 189342 has been marked as a duplicate of this bug. *** *** Bug 189346 has been marked as a duplicate of this bug. *** *** Bug 189348 has been marked as a duplicate of this bug. *** Created attachment 349163 [details]
Patch
Comment on attachment 349163 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=349163&action=review > Source/WebCore/ChangeLog:3 > + [GTK] Several media related tests timing out around the same revision Why is this GTK specific? > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:348 > - if (m_lastQuery > -1 && ((now - m_lastQuery) < 300) && m_cachedPosition.isValid()) > + if (m_lastQuery > -1 && ((now - m_lastQuery) < 200) && m_cachedPosition.isValid()) This would be easier to read if m_lastQuery was a std::optional<Seconds> (and probably renamed to m_lastQuertTime) and now was Seconds too. I would also avoid the magic number, giving 200 a name: static const Seconds positionCacheThreshold = 200_ms; Seconds now = WTF::WallTime::now().secondsSinceEpoch(); if (m_lastQueryTime && (now - m_lastQueryTime.value()) < positionCacheThreshold && m_cachedPosition.isValid()) something like that Committed r235846: <https://trac.webkit.org/changeset/235846> |