<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK][GStreamer] ClearKey EME v1 decryption support"
   href="https://bugs.webkit.org/show_bug.cgi?id=154235">bug 154235</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>cgarcia&#64;igalia.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK][GStreamer] ClearKey EME v1 decryption support"
   href="https://bugs.webkit.org/show_bug.cgi?id=154235#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK][GStreamer] ClearKey EME v1 decryption support"
   href="https://bugs.webkit.org/show_bug.cgi?id=154235">bug 154235</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=154235#c8">comment #8</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=154235#c7">comment #7</a>)
&gt; &gt; 
&gt; &gt; &gt; Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:896
&gt; &gt; &gt; +    if (!equalIgnoringASCIICase(keySystem, &quot;org.w3.clearkey&quot;))
&gt; &gt; &gt; +        return MediaPlayer::KeySystemNotSupported;
&gt; &gt; 
&gt; &gt; Instead of duplication this check here, we could call supportsKeySystem
&gt; &gt; instead, or move this check to a helper function and use it from both places.
&gt; &gt; 
&gt; 
&gt; I'm not sure it's worth.</span >

If the condition changes for whatever reason you will have to change it everywhere.

<span class="quote">&gt; &gt; 
&gt; &gt; &gt; Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:931
&gt; &gt; &gt; +    if (parameters.keySystem.isNull() || parameters.keySystem.isEmpty())
&gt; &gt; 
&gt; &gt; parameters.keySystem.isEmpty() returns true if it's null
&gt; &gt; 
&gt; 
&gt; So you mean testing only isNull() is enough?</span >

No, isEmpty is enough.

<span class="quote">&gt; &gt; &gt; Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h:57
&gt; &gt; &gt; +void registerWebKitGStreamerElements();
&gt; &gt; &gt; +
&gt; &gt; 
&gt; &gt; Why does this need to be here? Can't this be a static function?
&gt; &gt; 
&gt; 
&gt; It will need to be called from the future MediaPlayerPrivateGStreamerMSE.</span >

Ah, ok, I think changing that in the future patch makes this easiert o understand.

<span class="quote">&gt; &gt; 
&gt; &gt; &gt; Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h:128
&gt; &gt; &gt; +    virtual void dispatchDecryptionKey(GstBuffer*);
&gt; &gt; 
&gt; &gt; Why is this virtual and public?
&gt; &gt; 
&gt; 
&gt; The MediaPlayerPrivateGStreamerMSE player will need to override it. But
&gt; maybe it can be private though, I'll check.</span >

Same here, I guess it could be protected.

<span class="quote">&gt; I'll process the remain comments later on :) Thanks!</span ></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>