<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebRTC: Imlement MediaEndpointPeerConnection::setLocalDescription()"
   href="https://bugs.webkit.org/show_bug.cgi?id=158190#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebRTC: Imlement MediaEndpointPeerConnection::setLocalDescription()"
   href="https://bugs.webkit.org/show_bug.cgi?id=158190">bug 158190</a>
              from <span class="vcard"><a class="email" href="mailto:adam.bergkvist&#64;ericsson.com" title="Adam Bergkvist &lt;adam.bergkvist&#64;ericsson.com&gt;"> <span class="fn">Adam Bergkvist</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=158190#c2">comment #2</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=280724&amp;action=diff" name="attach_280724" title="Proposed patch">attachment 280724</a> <a href="attachment.cgi?id=280724&amp;action=edit" title="Proposed patch">[details]</a></span>
&gt; Proposed patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=280724&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=280724&amp;action=review</a>
&gt; 
&gt; &gt; Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp:161
&gt; &gt; +    RefPtr&lt;MediaEndpointSessionConfiguration&gt; configurationSnapshot = internalLocalDescription() ?
&gt; &gt; +        internalLocalDescription()-&gt;configuration()-&gt;clone() : MediaEndpointSessionConfiguration::create();
&gt; 
&gt; Nit: it may be worth putting internalLocalDescription() into a local instead
&gt; of calling it twice.</span >

Fixed.

<span class="quote">&gt; &gt; Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp:258
&gt; &gt; +    unsigned previousNumberOfMediaDescriptions = internalLocalDescription() ?
&gt; &gt; +        internalLocalDescription()-&gt;configuration()-&gt;mediaDescriptions().size() : 0;
&gt; 
&gt; Ditto.</span >

Fixed.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>