<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <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#c16">Comment # 16</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:pnormand&#64;igalia.com" title="Philippe Normand &lt;pnormand&#64;igalia.com&gt;"> <span class="fn">Philippe Normand</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=154235#c14">comment #14</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=154235#c11">comment #11</a>)
&gt; &gt; (In reply to <a href="show_bug.cgi?id=154235#c9">comment #9</a>)
&gt; &gt; &gt; (In reply to <a href="show_bug.cgi?id=154235#c8">comment #8</a>)
&gt; &gt; &gt; &gt; (In reply to <a href="show_bug.cgi?id=154235#c7">comment #7</a>)
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:896
&gt; &gt; &gt; &gt; &gt; &gt; +    if (!equalIgnoringASCIICase(keySystem, &quot;org.w3.clearkey&quot;))
&gt; &gt; &gt; &gt; &gt; &gt; +        return MediaPlayer::KeySystemNotSupported;
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Instead of duplication this check here, we could call supportsKeySystem
&gt; &gt; &gt; &gt; &gt; instead, or move this check to a helper function and use it from both places.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; I'm not sure it's worth.
&gt; &gt; &gt; 
&gt; &gt; &gt; If the condition changes for whatever reason you will have to change it
&gt; &gt; &gt; everywhere.
&gt; &gt; &gt; 
&gt; &gt; 
&gt; &gt; In two places. I know we are lazy developers, but this is not worth the
&gt; &gt; refactoring effort at this point, imho :)
&gt; 
&gt; You don't need any refactoring, just call the existing function that already
&gt; checks this.</span >

So you suggest to call supportsKeySystem() right? but addKey() and generateKeyRequest() have no mimeType param</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>