[Webkit-unassigned] [Bug 159145] REGRESSION(r202337) [WebRTC] Crash when loading html5test.com

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 28 14:36:53 PDT 2016


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

--- Comment #6 from Adam Bergkvist <adam.bergkvist at ericsson.com> ---
(In reply to comment #5)

Thanks for reviewing, Alex

> Comment on attachment 282224 [details]
> Proposed patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=282224&action=review
> 
> > Source/WebCore/platform/mediastream/MediaEndpoint.cpp:56
> > +class NullMediaEndpoint : public MediaEndpoint {
> 
> I think EmptyMediaEndpoint would be a better name.

EmptyMediaEndpoint and EmptyRealtimeMediaSource works for me.

> > Source/WebCore/platform/mediastream/MediaEndpoint.cpp:80
> > +    return std::unique_ptr<MediaEndpoint>(new NullMediaEndpoint(client));
> 
> make_unique.  Also, this function is not necessary.  Just use
> std::make_unique instead of this.

Are you referring to the createMediaEndpoint() function here? The MediaEndpointPeerConnection constructor calls createMediaEndpoint() to create its MediaEndpoint - in this case an "empty" one. When a port has a "real" MediaEndponit implementation it provides its own createMediaEndpoint() that's called instead.

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


More information about the webkit-unassigned mailing list