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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 5 02:20:17 PDT 2017


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

--- Comment #9 from Yoshiaki Jitsukawa <Yoshiaki.Jitsukawa at sony.com> ---
(In reply to Zan Dobersek from comment #8)
> 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.

Thanks, let me try those.

-- 
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/c0023efe/attachment.html>


More information about the webkit-unassigned mailing list