<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 14/09/15 20:41, Andres Colubri
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAHNP6O9r5wzMkcttVPj9u2_xRbvzA-mZsZdJ0HO3_R8F1c1KDg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi guys,
        <div><br>
        </div>
        <div>Thanks for the info. The combination of calls:</div>
        <div><br>
        </div>
        <div>GstGLDisplay* display = gst_gl_display_new();<br>
        </div>
        <div>guintptr context =
          gst_gl_context_get_current_gl_context(GST_GL_HAVE_PLATFORM_CGL);
             <br>
        </div>
        <div>GstGLContext* gstcontext =
          gst_gl_context_new_wrapped(display, context,
          GST_GL_HAVE_PLATFORM_CGL, <span
            style="color:rgb(0,0,0);font-size:13.3333px">GST_GL_API_OPENGL</span>);<br>
        </div>
      </div>
    </blockquote>
    <br>
    Shouldn't this be?<br>
    s/GST_GL_HAVE_PLATFORM_CGL/GST_GL_PLATFORM_CGL/<br>
    <br>
    <blockquote
cite="mid:CAHNP6O9r5wzMkcttVPj9u2_xRbvzA-mZsZdJ0HO3_R8F1c1KDg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>in the<span
style="color:rgb(51,51,51);font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13px;line-height:18.2px"> </span><span
style="color:rgb(51,51,51);font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13px;line-height:18.2px">bus
            callback </span>seems like the solution I have been looking
          for, at least on OS X. However,
          gst_gl_context_get_current_gl_context always returns 0, so
          theres is a problem a problem. Maybe the <span
style="color:rgb(51,51,51);font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13px;line-height:18.2px">bus
            callback  is called when the GL context is not current in
            the calling thread.</span></div>
      </div>
    </blockquote>
    <br>
    The gst_gl_context_get_current* family of functions require that the
    external context be current in the calling thread for them to work. 
    The synchronous bus callback is called from a GStreamer element
    streaming thread which is not the main thread.<br>
    <br>
    Cheers<br>
    -Matt<br>
    <br>
    <blockquote
cite="mid:CAHNP6O9r5wzMkcttVPj9u2_xRbvzA-mZsZdJ0HO3_R8F1c1KDg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><font face="Arial, Tahoma, Helvetica, FreeSans, sans-serif"
            color="#333333"><span style="line-height:18.2px">I will also
              give a try to </span></font><span
style="color:rgb(51,51,51);font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13px;line-height:18.2px">caopengllayersink
            once 1.6 is out.</span><span
style="line-height:18.2px;color:rgb(51,51,51);font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif"> </span></div>
        <div><span
style="color:rgb(51,51,51);font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13px;line-height:18.2px"><br>
          </span></div>
        <div><span
style="color:rgb(51,51,51);font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13px;line-height:18.2px">Cheers,</span></div>
        <div><span
style="color:rgb(51,51,51);font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13px;line-height:18.2px">Andres</span></div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Sun, Sep 6, 2015 at 5:51 AM,
          Sebastian Dröge <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex"><span
              class="">On Fr, 2015-09-04 at 11:50 -0400, Andres Colubri
              wrote:<br>
              > Hi Matt,<br>
              ><br>
              > Cool, thanks for the follow up on OS X. I'm pretty
              sure that JOGL<br>
              > doesn't use XQuartz, so it is probably just a NSApp.
              For Linux and<br>
              > Windows, it relies on X11 and (if understand the
              native core<br>
              > correctly) on the win32 API.<br>
              <br>
            </span>Note that Matthew also blogged about how to integrate
            libgstgl with<br>
            other GL libraries here:<br>
            <a moz-do-not-send="true"
href="http://ystreet00.blogspot.gr/2015/09/gstreamer-16-and-opengl-contexts.html"
              rel="noreferrer" target="_blank">http://ystreet00.blogspot.gr/2015/09/gstreamer-16-and-opengl-contexts.html</a><br>
            <br>
            Maybe that contains some further useful information for you
            :)<br>
            <span class=""><br>
              > Do you want me to open an issue on the gstreamer
              tracker requesting<br>
              > the API enhancement, so at least the discussion is
              better focused?<br>
              <br>
            </span>Sounds like a good plan :)<br>
            <span class="HOEnZb"><font color="#888888"><br>
                --<br>
                Sebastian Dröge, Centricular Ltd · <a
                  moz-do-not-send="true"
                  href="http://www.centricular.com" rel="noreferrer"
                  target="_blank"><a class="moz-txt-link-freetext" href="http://www.centricular.com">http://www.centricular.com</a></a><br>
                <br>
              </font></span><br>
            _______________________________________________<br>
            gstreamer-devel mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
              rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>