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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 9 16:19:29 PDT 2017


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

--- Comment #11 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.

Both of them didn't work and it seems that there's something wrong with deduction
in nested lambda so I attached another patch to create a weak ptr at the outermost
capture list.

-- 
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/20171009/8618c85f/attachment-0001.html>


More information about the webkit-unassigned mailing list