<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 22:57, Andres Colubri
wrote:<br>
</div>
<blockquote
cite="mid:CAHNP6O_uEYujmGTGKALCJyPFEOqUzyEYhWTf9mQZKQFoaa7jrA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Matt,
<div><br>
</div>
<div>Thank for pointing out the typo... I guess that's the
consequence of working late on Sunday night :-)</div>
<div><br>
</div>
<div>So after fixing that I'm getting a non-zero gl context, but
only if I move gst_gl_context_get_current_gl_context() to the
init function that is called when the gl context in the main
application should be current (if I call it in the callback it
still returns zero). So what I do is to save the context in a
global variable and use it in the callback. Is this approach
sound?</div>
</div>
</blockquote>
<br>
Sure, that sounds fine provided the GL context doesn't change in
between.<br>
<br>
-Matt<br>
<br>
<blockquote
cite="mid:CAHNP6O_uEYujmGTGKALCJyPFEOqUzyEYhWTf9mQZKQFoaa7jrA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Andres</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Sep 14, 2015 at 7:04 AM,
Matthew Waters <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:ystreet00@gmail.com" target="_blank">ystreet00@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><span class="">
<div>On 14/09/15 20:41, Andres Colubri wrote:<br>
</div>
<blockquote 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>
</span> Shouldn't this be?<br>
s/GST_GL_HAVE_PLATFORM_CGL/GST_GL_PLATFORM_CGL/<span
class=""><br>
<br>
<blockquote 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>
</span> 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<span class=""><br>
<br>
<blockquote 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"><a class="moz-txt-link-abbreviated" href="mailto:sebastian@centricular.com">sebastian@centricular.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0
0 .8ex;border-left:1px #ccc
solid;padding-left:1ex"><span>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><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><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd · <a
moz-do-not-send="true"
href="http://www.centricular.com"
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"
target="_blank">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>
</span></div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</body>
</html>