[Webkit-unassigned] [Bug 177803] Fix MSVC build with ENCRYPTED_MEDIA enabled

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 5 01:15:29 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=177803

--- Comment #8 from Zan Dobersek <zan at falconsigh.net> ---
Try adding a simple private `createWeakPtr()` method on the MediaKeySession class, and call that in the lambda's capture list:

> WeakPtr<MediaKeySession> createWeakPtr() { return m_weakPtrFactory.createWeakPtr(*this); }

The build error seems to indicate a compiler bug in how the `*this` object is deduced in the capture list. I also wonder whether capturing `weakThis = m_weakPtrFactory.createWeakPtr(*this)` before the plain `this` pointer would have any effect.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171005/eff2bb39/attachment.html>


More information about the webkit-unassigned mailing list