<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GStreamer][OWR] GL rendering support"
   href="https://bugs.webkit.org/show_bug.cgi?id=162972#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GStreamer][OWR] GL rendering support"
   href="https://bugs.webkit.org/show_bug.cgi?id=162972">bug 162972</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>Comment on <span class=""><a href="attachment.cgi?id=290711&amp;action=diff" name="attach_290711" title="[OpenWebRTC][GStreamerGL] Fix video rendering">attachment 290711</a> <a href="attachment.cgi?id=290711&amp;action=edit" title="[OpenWebRTC][GStreamerGL] Fix video rendering">[details]</a></span>
[OpenWebRTC][GStreamerGL] Fix video rendering

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=290711&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=290711&amp;action=review</a>

<span class="quote">&gt;&gt; Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerOwr.cpp:361
&gt;&gt; +    owr_video_renderer_set_request_context_callback(OWR_VIDEO_RENDERER(m_videoRenderer.get()), (OwrVideoRendererRequestContextCallback) MediaPlayerPrivateGStreamerBase::requestGLContext, this, nullptr);
&gt; 
&gt; This should use a static_cast&lt;&gt;.</span >

Doesn't build:

MediaPlayerPrivateGStreamerOwr.cpp:361:196: error: invalid static_cast from type ‘GstContext*(const gchar*, WebCore::MediaPlayerPrivateGStreamerBase*) {aka _GstContext*(const char*, WebCore::MediaPlayerPrivateGStreamerBase*)}’ to type ‘OwrVideoRendererRequestContextCallback {aka _GstContext* (*)(const char*, void*)}’
     owr_video_renderer_set_request_context_callback(OWR_VIDEO_RENDERER(m_videoRenderer.get()), static_cast&lt;OwrVideoRendererRequestContextCallback&gt;(MediaPlayerPrivateGStreamerBase::requestGLContext), this, nullptr);</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>