<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">1. external-oes textures are special
and unless you are doing EGLImage's or some custom thing, then
they are not useful for you. you most likely want regular 2D
textures.<br>
2. If you set G_DEBUG=fatal-warnings and run your program in a
debugger, the program will stop on the first warning that is
output.<br>
3. With regards to the warnings, you are attempting to call a
GStreamer OpenGL library function with an GstGLContext that is not
current (the GLX context may be current but GStreamer does not and
cannot know that). The GstGLContext that you are providing to
various GStreamer OpenGL functions is your wrapped application
context. This wrapped application context has special
requirements for ensuring that the OpenGL context is current in
the thread it is being called from and will produce those warnings
from gst_gl_context_thread_add if you fail to adhere to the API
contract. You must ensure that your application has the OpenGL
context current for the wrapped GstGLContext and you must notify
GStreamer of that by calling gst_gl_context_activate (context,
TRUE) in the thread where the application provided context is
current.<br>
4. There are various confusions of RGB vs RGBA in your
application. All formats must be identical. i.e. GL_RGBA maps to
GST_VIDEO_FORMAT_RGBA. The various gst_gl_format_*() functions
can help you choose the correct OpenGL format and internal format
for your textures.<br>
5. There is no need to call glXSwapBuffers. The fact that you are
indicates you may be rendering to the front/back buffers which is
not how rendering to a texture works.<br>
<br>
On 3/6/20 8:59 pm, Nikolay Frey wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAPywz==gQfYVqJ5ifZ2sfAydYuw8y4ayYkTwpf_vPvU6q1fRjw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">Re: appsrc + x11 + GLMemory<br>
</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">I did not see my attachments in the mailing list.<br>
</div>
<div>source code:</div>
<div dir="ltr">"</div>
<div dir="ltr">
<p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(253,143,63);background-color:rgb(31,31,36)">#define
GL_GLEXT_PROTOTYPES</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s1" style="color:rgb(253,143,63)">#include </span><gst/gst.h></p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s1" style="color:rgb(253,143,63)">#include </span><gst/gl/gl.h></p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s1" style="color:rgb(253,143,63)">#include </span><gst/app/gstappsink.h></p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s1" style="color:rgb(253,143,63)">#include </span><gst/gl/x11/gstgldisplay_x11.h></p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s1" style="color:rgb(253,143,63)">#include </span><gst/gl/gstglmemory.h></p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(253,143,63);background-color:rgb(31,31,36)">#include
<span class="gmail-s2" style="color:rgb(252,106,93)"><math.h></span></p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s1" style="color:rgb(253,143,63)">#include </span><stdlib.h></p>
<p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(253,143,63);background-color:rgb(31,31,36)">#include
<span class="gmail-s2" style="color:rgb(252,106,93)"><stdio.h></span></p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s1" style="color:rgb(253,143,63)">#include </span><string.h></p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s1" style="color:rgb(253,143,63)">#include </span><sys/time.h></p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s1" style="color:rgb(253,143,63)">#include </span><unistd.h></p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s1" style="color:rgb(253,143,63)">#include </span><X11/Xlib.h></p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s1" style="color:rgb(253,143,63)">#include </span><X11/keysym.h></p>
<p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(253,143,63);background-color:rgb(31,31,36)">#include
<span class="gmail-s2" style="color:rgb(252,106,93)"><GL/gl.h></span></p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s1" style="color:rgb(253,143,63)">#include </span><GL/glut.h></p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s1" style="color:rgb(253,143,63)">#include </span><GL/glx.h></p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s1" style="color:rgb(253,143,63)">#include </span><GL/glxext.h></p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><b>typedef</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span><b>struct</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span><span
class="gmail-s4" style="color:rgb(93,216,255)">app_s</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>Display<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>*display;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>Window<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>win;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GLXContext<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>ctx;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GstGLDisplay<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>*gl_display;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GstPipeline<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>*pipeline;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GMainLoop<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>*loop;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GstElement<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>*source;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>unsigned</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
framebuffer;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>unsigned</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
texture;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GstContext<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>*x11context;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GstContext<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>*ctxcontext;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GstGLContext<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>*gl_context;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GstGLVideoAllocationParams
*allocation_params;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>width;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>height;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">}
app_t;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p6"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(65,161,192);background-color:rgb(31,31,36)">app_t<span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span>g_app<span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> = {</span><span
class="gmail-s6" style="color:rgb(208,191,105)">0</span><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">};</span></p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><b>static</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span><b>void</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span><span
class="gmail-s7" style="color:rgb(65,161,192)">_gl_draw</span><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">(</span><b>void</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">)</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">{</p>
<p class="gmail-p7"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(108,121,134);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span>//opengl
draw objects</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>static</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>void</b></span>
<span class="gmail-s7" style="color:rgb(65,161,192)">_gl_draw_frame</span>(app_t
*app)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>static</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>frames
= <span class="gmail-s6" style="color:rgb(208,191,105)">0</span>;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GstBuffer<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>*buffer;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gpointer<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>wrapped[<span
class="gmail-s6" style="color:rgb(208,191,105)">1</span>];</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GstVideoFrame<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>out_frame;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gboolean<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>ret;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GstGLMemoryAllocator<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>*allocator
= gst_gl_memory_allocator_get_default(app->gl_context);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GstVideoMeta<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>*vmeta;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>wrapped[<span
class="gmail-s6" style="color:rgb(208,191,105)">0</span>]
= (gpointer) app->texture;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>buffer
= gst_buffer_new();</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(!buffer)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"no
buffer\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">);</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>exit(<span
class="gmail-s6" style="color:rgb(208,191,105)">1</span>);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"add
meta\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">);</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>vmeta
= gst_buffer_add_video_meta(buffer,
GST_VIDEO_FRAME_FLAG_NONE, GST_VIDEO_FORMAT_RGBA, <span
class="gmail-s6" style="color:rgb(208,191,105)">512</span>,
<span class="gmail-s6" style="color:rgb(208,191,105)">512</span>);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(!vmeta)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"add
meta failed\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">);</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>exit(<span
class="gmail-s6" style="color:rgb(208,191,105)">1</span>);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"setup
buffer\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">);</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>ret
= gst_gl_memory_setup_buffer(allocator, buffer,
app->allocation_params, <span class="gmail-s5"
style="color:rgb(252,95,163)"><b>NULL</b></span>, wrapped,
<span class="gmail-s6" style="color:rgb(208,191,105)">1</span>);</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"setup
buffer ret %d\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">, ret);</span></p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(!gst_video_frame_map(&out_frame,
app->allocation_params->v_info, buffer, (GstMapFlags)
(GST_MAP_WRITE | GST_MAP_GL)))</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"failed
on gst_video_frame_map\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">);</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>exit(<span
class="gmail-s6" style="color:rgb(208,191,105)">1</span>);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>guint
next_tex = *(guint *) out_frame.data[<span class="gmail-s6"
style="color:rgb(208,191,105)">0</span>];</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"next_tex
%d\n"</span>, next_tex);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>_gl_draw();</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gst_video_frame_unmap(&out_frame);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_signal_emit_by_name(app->source,
<span class="gmail-s2" style="color:rgb(252,106,93)">"push-buffer"</span>,
buffer, &ret);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gst_buffer_unref(buffer);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"push ret
%d\n"</span>, ret);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glXSwapBuffers(app->display,
app->win);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>frames++;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>static</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>void</b></span>
<span class="gmail-s7" style="color:rgb(65,161,192)">_gl_reshape</span>(app_t
*app, <span class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
width, <span class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
height)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glGenFramebuffers(<span
class="gmail-s6" style="color:rgb(208,191,105)">1</span>,
&app->framebuffer);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glBindFramebuffer(GL_FRAMEBUFFER,
app->framebuffer);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"FramebufferName
%d\n"</span>, app->framebuffer);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glGenTextures(<span
class="gmail-s6" style="color:rgb(208,191,105)">1</span>,
&app->texture);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glBindTexture(GL_TEXTURE_2D,
app->texture);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"texture
%d\n"</span>, app->texture);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glTexImage2D(GL_TEXTURE_2D,
<span class="gmail-s6" style="color:rgb(208,191,105)">0</span>,
GL_RGB, width, height, <span class="gmail-s6"
style="color:rgb(208,191,105)">0</span>, GL_RGB,
GL_UNSIGNED_BYTE, <span class="gmail-s5"
style="color:rgb(252,95,163)"><b>NULL</b></span>);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glTexParameteri(GL_TEXTURE_2D,
GL_TEXTURE_MIN_FILTER, GL_LINEAR);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glTexParameteri(GL_TEXTURE_2D,
GL_TEXTURE_MAG_FILTER, GL_LINEAR);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glBindTexture(GL_TEXTURE_2D,
<span class="gmail-s6" style="color:rgb(208,191,105)">0</span>);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glFramebufferTexture2D(GL_FRAMEBUFFER,
GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, app->texture, <span
class="gmail-s6" style="color:rgb(208,191,105)">0</span>);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span><b>unsigned</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span><b>int</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">
rbo;</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glGenRenderbuffers(<span
class="gmail-s6" style="color:rgb(208,191,105)">1</span>,
&rbo);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glBindRenderbuffer(GL_RENDERBUFFER,
rbo);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glRenderbufferStorage(GL_RENDERBUFFER,
GL_DEPTH24_STENCIL8, width, height);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glBindRenderbuffer(GL_RENDERBUFFER,
<span class="gmail-s6" style="color:rgb(208,191,105)">0</span>);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glFramebufferRenderbuffer(GL_FRAMEBUFFER,
GL_DEPTH_STENCIL_ATTACHMENT, GL_RENDERBUFFER, rbo);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>(glCheckFramebufferStatus(GL_FRAMEBUFFER)
!= GL_FRAMEBUFFER_COMPLETE)</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"failed
on glCheckFramebufferStatus\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">);</span></p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glBindFramebuffer(GL_FRAMEBUFFER,
app->framebuffer);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glViewport(<span
class="gmail-s6" style="color:rgb(208,191,105)">0</span>,
<span class="gmail-s6" style="color:rgb(208,191,105)">0</span>,
(GLint) width, (GLint) height);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glMatrixMode(GL_PROJECTION);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glLoadIdentity();</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>float</b></span>
nearp = <span class="gmail-s6"
style="color:rgb(208,191,105)">1</span>, farp = <span
class="gmail-s6" style="color:rgb(208,191,105)">500.0f</span>,
hht, hwd;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>hht
= nearp * tan(<span class="gmail-s6"
style="color:rgb(208,191,105)">45.0</span> / <span
class="gmail-s6" style="color:rgb(208,191,105)">2.0</span>
/ <span class="gmail-s6" style="color:rgb(208,191,105)">180.0</span>
* M_PI);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>hwd
= hht * width / height;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glFrustum(-hwd,
hwd, -hht, hht, nearp, farp);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glMatrixMode(GL_MODELVIEW);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glLoadIdentity();</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glTranslatef(<span
class="gmail-s6" style="color:rgb(208,191,105)">0.0</span>,
<span class="gmail-s6" style="color:rgb(208,191,105)">0.0</span>,
-<span class="gmail-s6" style="color:rgb(208,191,105)">40.0</span>);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><b>static</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span><b>void</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span><span
class="gmail-s7" style="color:rgb(65,161,192)">_gl_init</span><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">(</span><b>void</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">)</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glEnable(GL_DEPTH_TEST);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>static</b></span>
GLfloat pos[<span class="gmail-s6"
style="color:rgb(208,191,105)">4</span>] = { <span
class="gmail-s6" style="color:rgb(208,191,105)">5.0</span>,
<span class="gmail-s6" style="color:rgb(208,191,105)">5.0</span>,
<span class="gmail-s6" style="color:rgb(208,191,105)">10.0</span>,
<span class="gmail-s6" style="color:rgb(208,191,105)">0.0</span>
};</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glShadeModel(GL_FLAT);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glLightfv(GL_LIGHT0,
GL_POSITION, pos);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glEnable(GL_CULL_FACE);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glEnable(GL_LIGHTING);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glEnable(GL_LIGHT0);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glEnable(GL_DEPTH_TEST);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glEnable(GL_NORMALIZE);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>static</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>void</b></span>
<span class="gmail-s7" style="color:rgb(65,161,192)">_gst_gl_init</span>(app_t
*app, <span class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
width, <span class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
height)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GstVideoInfo
*vinfo = gst_video_info_new();</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"new
video info %p\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">, vinfo);</span></p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gboolean
ret = gst_video_info_set_format(vinfo,
GST_VIDEO_FORMAT_RGBA, width, height);</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"set
video info ret %d\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">, ret);</span></p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"allocation
params\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">);</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>app->allocation_params
=
gst_gl_video_allocation_params_new_wrapped_texture(app->gl_context,</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>NULL</b></span>,
vinfo, <span class="gmail-s6"
style="color:rgb(208,191,105)">0</span>, <span
class="gmail-s5" style="color:rgb(252,95,163)"><b>NULL</b></span>,
GST_GL_TEXTURE_TARGET_2D, GST_GL_RGB, app->texture, <span
class="gmail-s5" style="color:rgb(252,95,163)"><b>NULL</b></span>,
<span class="gmail-s6" style="color:rgb(208,191,105)">0</span>);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"allocation
params %p gl_context %p\n"</span>,
app->allocation_params, app->gl_context);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>static</b></span>
<span class="gmail-s7" style="color:rgb(65,161,192)">gboolean</span>
<span class="gmail-s7" style="color:rgb(65,161,192)">_gst_bus_call</span>(GstBus
*bus, GstMessage *msg, gpointer data)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GMainLoop
*loop = (GMainLoop*) data;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>switch</b></span>
(GST_MESSAGE_TYPE (msg))</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>case</b></span>
GST_MESSAGE_EOS:</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"eos\n"</span>);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_main_loop_quit
(loop);</p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span><b>break</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">;</span></p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>case</b></span>
GST_MESSAGE_ERROR:</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gchar<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>*debug
= <span class="gmail-s5" style="color:rgb(252,95,163)"><b>NULL</b></span>;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GError<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>*err
= <span class="gmail-s5" style="color:rgb(252,95,163)"><b>NULL</b></span>;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gst_message_parse_error(msg,
&err, &debug);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"error
'%s'\n"</span>, err->message);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_error_free(err);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(debug)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"deails
'%s'\n"</span>, debug);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_free(debug);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_main_loop_quit
(loop);</p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span><b>break</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">;</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>case</b></span>
GST_MESSAGE_NEED_CONTEXT:</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>const</b></span>
gchar *context_type;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gst_message_parse_context_type(msg,
&context_type);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(g_strcmp0(context_type, <span class="gmail-s2"
style="color:rgb(252,106,93)">"gst.gl.app_context"</span>)
== <span class="gmail-s6" style="color:rgb(208,191,105)">0</span>)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"context
type '%s'\n"</span>, context_type);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gst_element_set_context(GST_ELEMENT
(msg->src), g_app.ctxcontext);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>else</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(g_strcmp0(context_type, GST_GL_DISPLAY_CONTEXT_TYPE) == <span
class="gmail-s6" style="color:rgb(208,191,105)">0</span>)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"context
type '%s'\n"</span>, context_type);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gst_element_set_context(GST_ELEMENT
(msg->src), g_app.x11context);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span><b>break</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">;</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>case</b></span>
GST_MESSAGE_HAVE_CONTEXT:</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"GST_MESSAGE_HAVE_CONTEXT\n"<span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">);</span></p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span><b>break</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">;</span></p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span><b>default</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">:</span></p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span><b>break</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">;</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span><b>return</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span><b>TRUE</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">;</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>static</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>void</b></span>
<span class="gmail-s7" style="color:rgb(65,161,192)">_x11_create_window</span>(<span
class="gmail-s5" style="color:rgb(252,95,163)"><b>const</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>char</b></span>
*name,<span class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
x, <span class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
y, <span class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
width, <span class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
height, app_t *app, VisualID *visRet)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
attribs[<span class="gmail-s6"
style="color:rgb(208,191,105)">64</span>];</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
i = <span class="gmail-s6" style="color:rgb(208,191,105)">0</span>;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
scrnum;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>XSetWindowAttributes
attr;</p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span><b>unsigned</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span><b>long</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">
mask;</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>Window
root;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>XSizeHints
sizehints;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>XVisualInfo
*visinfo;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attribs[i++]
= GLX_RGBA;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attribs[i++]
= GLX_DOUBLEBUFFER;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attribs[i++]
= GLX_RED_SIZE;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attribs[i++]
= <span class="gmail-s6" style="color:rgb(208,191,105)">1</span>;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attribs[i++]
= GLX_GREEN_SIZE;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attribs[i++]
= <span class="gmail-s6" style="color:rgb(208,191,105)">1</span>;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attribs[i++]
= GLX_BLUE_SIZE;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attribs[i++]
= <span class="gmail-s6" style="color:rgb(208,191,105)">1</span>;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attribs[i++]
= GLX_DEPTH_SIZE;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attribs[i++]
= <span class="gmail-s6" style="color:rgb(208,191,105)">1</span>;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attribs[i++]
= None;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>scrnum
= DefaultScreen(app->display);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>root
= RootWindow(app->display, scrnum);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>visinfo
= glXChooseVisual(app->display, scrnum, attribs);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(!visinfo)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"Error:
couldn't get an RGB, Double-buffered"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">);</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>exit(<span
class="gmail-s6" style="color:rgb(208,191,105)">1</span>);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attr.background_pixel
= <span class="gmail-s6" style="color:rgb(208,191,105)">0</span>;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attr.border_pixel
= <span class="gmail-s6" style="color:rgb(208,191,105)">0</span>;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attr.colormap
= XCreateColormap(app->display, root, visinfo->visual,
AllocNone);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>attr.event_mask
= StructureNotifyMask | ExposureMask | KeyPressMask;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>mask
= CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>app->win
= XCreateWindow(app->display, root, x, y, width, height,
<span class="gmail-s6" style="color:rgb(208,191,105)">0</span>,
visinfo->depth, InputOutput, visinfo->visual, mask,
&attr );</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>sizehints.x
= x;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>sizehints.y
= y;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>sizehints.width<span
class="gmail-Apple-converted-space"> </span>= width;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>sizehints.height
= height;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>sizehints.flags
= USSize | USPosition;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>XSetNormalHints(app->display,
app->win, &sizehints);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>XSetStandardProperties(app->display,
app->win, name, name, None, (<span class="gmail-s5"
style="color:rgb(252,95,163)"><b>char</b></span> **) <span
class="gmail-s5" style="color:rgb(252,95,163)"><b>NULL</b></span>,
<span class="gmail-s6" style="color:rgb(208,191,105)">0</span>,
&sizehints);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>app->ctx
= glXCreateContext(app->display, visinfo, <span
class="gmail-s5" style="color:rgb(252,95,163)"><b>NULL</b></span>,
True);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(!app->ctx)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"Error:
glXCreateContext failed\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">);</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>exit(<span
class="gmail-s6" style="color:rgb(208,191,105)">1</span>);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>*visRet
= visinfo->visualid;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>XFree(visinfo);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>static</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
<span class="gmail-s7" style="color:rgb(65,161,192)">_gl_is_glx_extension_supported</span>(Display
*display, <span class="gmail-s5"
style="color:rgb(252,95,163)"><b>const</b></span> <span
class="gmail-s5" style="color:rgb(252,95,163)"><b>char</b></span>
*query)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>const</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
scrnum = DefaultScreen(display);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>const</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>char</b></span>
*glx_extensions = <span class="gmail-s5"
style="color:rgb(252,95,163)"><b>NULL</b></span>;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>const</b></span>
size_t len = strlen(query);</p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span><b>const</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span><b>char</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">
*ptr;</span></p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(glx_extensions == <span class="gmail-s5"
style="color:rgb(252,95,163)"><b>NULL</b></span>)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glx_extensions
= glXQueryExtensionsString(display, scrnum);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>ptr
= strstr(glx_extensions, query);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>return</b></span>
((ptr != <span class="gmail-s5"
style="color:rgb(252,95,163)"><b>NULL</b></span>)
&& ((ptr[len] == <span class="gmail-s6"
style="color:rgb(208,191,105)">' '</span>) || (ptr[len] ==
<span class="gmail-s6" style="color:rgb(208,191,105)">'\0'</span>)));</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>static</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>void</b></span>
<span class="gmail-s7" style="color:rgb(65,161,192)">_gl_query_vsync</span>(Display
*display, GLXDrawable drawable)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
interval = <span class="gmail-s6"
style="color:rgb(208,191,105)">0</span>;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(_gl_is_glx_extension_supported(display, <span
class="gmail-s2" style="color:rgb(252,106,93)">"GLX_MESA_swap_control"</span>))</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>PFNGLXGETSWAPINTERVALMESAPROC
pglXGetSwapIntervalMESA =</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>(PFNGLXGETSWAPINTERVALMESAPROC)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glXGetProcAddressARB((<span
class="gmail-s5" style="color:rgb(252,95,163)"><b>const</b></span>
GLubyte *) <span class="gmail-s2"
style="color:rgb(252,106,93)">"glXGetSwapIntervalMESA"</span>);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>interval
= (*pglXGetSwapIntervalMESA)();</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>else</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(_gl_is_glx_extension_supported(display, <span
class="gmail-s2" style="color:rgb(252,106,93)">"GLX_SGI_swap_control"</span>))</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>interval
= <span class="gmail-s6" style="color:rgb(208,191,105)">1</span>;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(interval > <span class="gmail-s6"
style="color:rgb(208,191,105)">0</span>)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"Running
synchronized to the vertical refresh.<span
class="gmail-Apple-converted-space"> </span>The
framerate should be\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">);</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(interval == <span class="gmail-s6"
style="color:rgb(208,191,105)">1</span>)</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"approximately
the same as the monitor refresh rate.\n"<span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">);</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>else</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(interval > <span class="gmail-s6"
style="color:rgb(208,191,105)">1</span>)</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"approximately
1/%d the monitor refresh rate.\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">, interval);</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p6"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(65,161,192);background-color:rgb(31,31,36)"><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>static</b></span><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>void</b></span><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span>_gst_start_pipeline<span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">(app_t
*app)</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gst_element_set_context(GST_ELEMENT(app->pipeline),
app->ctxcontext);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gst_element_set_context(GST_ELEMENT(app->pipeline),
app->x11context);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gst_element_set_state(GST_ELEMENT(app->pipeline),
GST_STATE_PLAYING);</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"Pipeline
play\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">);</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p6"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(65,161,192);background-color:rgb(31,31,36)"><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>static</b></span><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span>gboolean<span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span>_gst_idle_loop<span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">(gpointer
data)</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>static</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
inited = <span class="gmail-s6"
style="color:rgb(208,191,105)">0</span>;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(!inited)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"idle pid
%d\n"</span>, getpid());</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>inited
= <span class="gmail-s6" style="color:rgb(208,191,105)">1</span>;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>_gl_draw_frame((app_t
*) data);</p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span><b>return</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span><b>TRUE</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">;</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>static</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>void</b></span>
<span class="gmail-s7" style="color:rgb(65,161,192)">_gst_load_pipeline</span>(app_t
*app, <span class="gmail-s5" style="color:rgb(252,95,163)"><b>const</b></span>
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>char</b></span>
*text)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>app->pipeline
= GST_PIPELINE(gst_parse_launch(text, <span
class="gmail-s5" style="color:rgb(252,95,163)"><b>NULL</b></span>));</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>GstBus
*bus = gst_pipeline_get_bus(GST_PIPELINE(app->pipeline));</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gst_bus_add_watch(bus,
_gst_bus_call, app->loop);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gst_object_unref(bus);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>app->source
= gst_bin_get_by_name(GST_BIN(app->pipeline), <span
class="gmail-s2" style="color:rgb(252,106,93)">"source"</span>);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
<span class="gmail-s7" style="color:rgb(65,161,192)">main</span>(<span
class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>
argc, <span class="gmail-s5" style="color:rgb(252,95,163)"><b>char</b></span>
**argv)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>x
= <span class="gmail-s6" style="color:rgb(208,191,105)">0</span>,
y = <span class="gmail-s6" style="color:rgb(208,191,105)">0</span>;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>char</b></span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>pl[<span
class="gmail-s6" style="color:rgb(208,191,105)">1024</span>];</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_app.width
= <span class="gmail-s6" style="color:rgb(208,191,105)">512</span>;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_app.height
= <span class="gmail-s6" style="color:rgb(208,191,105)">512</span>;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>char</b></span>
*displayName = <span class="gmail-s5"
style="color:rgb(252,95,163)"><b>NULL</b></span>;</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>VisualID
visId;</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_app.display
= XOpenDisplay(displayName);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span
class="gmail-s5" style="color:rgb(252,95,163)"><b>if</b></span>
(!g_app.display)</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"Error:
couldn't open display %s\n"</span>, displayName ?
displayName : getenv(<span class="gmail-s2"
style="color:rgb(252,106,93)">"DISPLAY"</span>));</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>exit(-<span
class="gmail-s6" style="color:rgb(208,191,105)">1</span>);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>}</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>_x11_create_window(<span
class="gmail-s2" style="color:rgb(252,106,93)">"window"</span>,
x, y, g_app.width, g_app.height, &g_app, &visId);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>XMapWindow(g_app.display,
g_app.win);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glXMakeCurrent(g_app.display,
g_app.win, g_app.ctx);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>_gl_query_vsync(g_app.display,
g_app.win);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"GL_RENDERER
<span class="gmail-Apple-converted-space"> </span>=
%s\n"</span>, (<span class="gmail-s5"
style="color:rgb(252,95,163)"><b>char</b></span> *)
glGetString(GL_RENDERER));</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"GL_VERSION<span
class="gmail-Apple-converted-space"> </span>= %s\n"</span>,
(<span class="gmail-s5" style="color:rgb(252,95,163)"><b>char</b></span>
*) glGetString(GL_VERSION));</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"GL_VENDOR
<span class="gmail-Apple-converted-space"> </span>=
%s\n"</span>, (<span class="gmail-s5"
style="color:rgb(252,95,163)"><b>char</b></span> *)
glGetString(GL_VENDOR));</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"GL_EXTENSIONS
= %s\n"</span>, (<span class="gmail-s5"
style="color:rgb(252,95,163)"><b>char</b></span> *)
glGetString(GL_EXTENSIONS));</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"VisualID
%d, 0x%x\n"</span>, (<span class="gmail-s5"
style="color:rgb(252,95,163)"><b>int</b></span>) visId, (<span
class="gmail-s5" style="color:rgb(252,95,163)"><b>int</b></span>)
visId);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>_gl_init();</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>_gl_reshape(&g_app,
g_app.width, g_app.height);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gst_init(<span
class="gmail-s5" style="color:rgb(252,95,163)"><b>NULL</b></span>,
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>NULL</b></span>);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_app.gl_display
=
GST_GL_DISPLAY(gst_gl_display_x11_new_with_display(g_app.display));</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_app.x11context
= gst_context_new(GST_GL_DISPLAY_CONTEXT_TYPE, <span
class="gmail-s5" style="color:rgb(252,95,163)"><b>TRUE</b></span>);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gst_context_set_gl_display(g_app.x11context,
g_app.gl_display);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_app.gl_context
= gst_gl_context_new_wrapped(g_app.gl_display, (guintptr)
g_app.ctx, GST_GL_PLATFORM_GLX,GST_GL_API_OPENGL);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_app.ctxcontext
= gst_context_new(<span class="gmail-s2"
style="color:rgb(252,106,93)">"gst.gl.app_context"</span>,
<span class="gmail-s5" style="color:rgb(252,95,163)"><b>TRUE</b></span>);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>gst_structure_set(gst_context_writable_structure(g_app.ctxcontext),
<span class="gmail-s2" style="color:rgb(252,106,93)">"context"</span>,
GST_TYPE_GL_CONTEXT, g_app.gl_context, <span
class="gmail-s5" style="color:rgb(252,95,163)"><b>NULL</b></span>);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>_gst_gl_init(&g_app,
g_app.width, g_app.height);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>snprintf(pl,
</span><span class="gmail-s5" style="color:rgb(252,95,163)"><b>sizeof</b></span><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">(pl),
</span>"appsrc stream-type=0 do-timestamp=1 emit-signals=0
format=3 is-live=1 name=source
caps=\"video/x-raw(memory:GLMemory), "</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span>"width=%d,
height=%d, framerate=(fraction)10/1, format=(string)RGBA,
texture-target=(string)external-oes\" ! glcolorconvert !
gldownload ! x264enc tune=0x4 b-adapt=0 ! h264parse "</p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span>"!
matroskamux ! filesink location=\"/tmp/test.mkv\" sync=0"<span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">,
g_app.width, g_app.height);</span></p>
<p class="gmail-p3"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,106,93);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(</span>"pipeline
'%s'\n"<span class="gmail-s3"
style="color:rgba(255,255,255,0.85)">, pl);</span></p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>_gst_load_pipeline(&g_app,
pl);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>_gst_start_pipeline(&g_app);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>sleep(<span
class="gmail-s6" style="color:rgb(208,191,105)">1</span>);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_app.loop
= g_main_loop_new(<span class="gmail-s5"
style="color:rgb(252,95,163)"><b>NULL</b></span>, <span
class="gmail-s5" style="color:rgb(252,95,163)"><b>FALSE</b></span>);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>printf(<span
class="gmail-s2" style="color:rgb(252,106,93)">"main pid
%d\n"</span>, getpid());</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_idle_add(_gst_idle_loop,
&g_app);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>g_main_loop_run(g_app.loop);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glXMakeCurrent(g_app.display,
None, <span class="gmail-s5" style="color:rgb(252,95,163)"><b>NULL</b></span>);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>glXDestroyContext(g_app.display,
g_app.ctx);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>XDestroyWindow(g_app.display,
g_app.win);</p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>XCloseDisplay(g_app.display);</p>
<p class="gmail-p2"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36);min-height:14px"><br>
</p>
<p class="gmail-p4"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(252,95,163);background-color:rgb(31,31,36)"><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></span><b>return</b><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)"> </span><span
class="gmail-s6" style="color:rgb(208,191,105)">0</span><span
class="gmail-s3" style="color:rgba(255,255,255,0.85)">;</span></p>
<p class="gmail-p5"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgba(255,255,255,0.85);background-color:rgb(31,31,36)">}</p>
</div>
<div dir="ltr">"</div>
<div dir="ltr"><br>
</div>
<div>out log:</div>
<div>"</div>
<div>GL_RENDERER = SVGA3D; build: RELEASE; LLVM;<br>
GL_VERSION = 2.1 Mesa 19.2.8<br>
GL_VENDOR = VMware, Inc.<br>
GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra
GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract
GL_EXT_copy_texture GL_EXT_subtexture GL_EXT_texture_object
GL_EXT_vertex_array GL_EXT_compiled_vertex_array
GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip
GL_ARB_point_parameters GL_EXT_draw_range_elements
GL_EXT_packed_pixels GL_EXT_point_parameters
GL_EXT_rescale_normal GL_EXT_separate_specular_color
GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap
GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp
GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB
GL_ARB_multitexture GL_EXT_framebuffer_sRGB
GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat
GL_ARB_texture_cube_map GL_ARB_texture_env_add
GL_ARB_transpose_matrix GL_EXT_blend_func_separate
GL_EXT_fog_coord GL_EXT_multi_draw_arrays
GL_EXT_secondary_color GL_EXT_texture_env_add
GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias
GL_INGR_blend_func_separate GL_NV_blend_square
GL_NV_light_max_exponent GL_NV_texgen_reflection
GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays
GL_ARB_texture_border_clamp GL_ARB_texture_compression
GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc
GL_EXT_texture_env_combine GL_EXT_texture_env_dot3
GL_MESA_window_pos GL_NV_packed_depth_stencil
GL_NV_texture_rectangle GL_ARB_depth_texture
GL_ARB_occlusion_query GL_ARB_shadow
GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar
GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat
GL_ARB_window_pos GL_ATI_fragment_shader
GL_EXT_stencil_two_side GL_EXT_texture_cube_map
GL_NV_fog_distance GL_APPLE_packed_pixels GL_ARB_draw_buffers
GL_ARB_fragment_program GL_ARB_fragment_shader
GL_ARB_shader_objects GL_ARB_vertex_program
GL_ARB_vertex_shader GL_ATI_draw_buffers
GL_ATI_texture_env_combine3 GL_ATI_texture_float
GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert
GL_NV_primitive_restart GL_ARB_fragment_program_shadow
GL_ARB_half_float_pixel GL_ARB_occlusion_query2
GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync
GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object
GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate
GL_OES_read_format GL_ARB_color_buffer_float
GL_ARB_pixel_buffer_object GL_ARB_texture_float
GL_ARB_texture_rectangle GL_EXT_pixel_buffer_object
GL_EXT_texture_compression_dxt1 GL_EXT_texture_rectangle
GL_EXT_texture_sRGB GL_ARB_framebuffer_object
GL_EXT_framebuffer_blit GL_EXT_packed_depth_stencil
GL_ARB_vertex_array_object GL_ATI_separate_stencil
GL_EXT_gpu_program_parameters GL_EXT_texture_sRGB_decode
GL_OES_EGL_image GL_ARB_copy_buffer GL_ARB_half_float_vertex
GL_ARB_map_buffer_range GL_ARB_texture_swizzle
GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle
GL_EXT_vertex_array_bgra GL_ARB_ES2_compatibility
GL_ARB_debug_output GL_ARB_draw_elements_base_vertex
GL_ARB_explicit_attrib_location
GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex
GL_ARB_sampler_objects GL_ARB_shader_texture_lod
GL_EXT_provoking_vertex GL_ARB_get_program_binary
GL_ARB_robustness GL_ARB_separate_shader_objects
GL_ANGLE_texture_compression_dxt3
GL_ANGLE_texture_compression_dxt5
GL_ARB_compressed_texture_pixel_storage
GL_ARB_internalformat_query GL_ARB_map_buffer_alignment
GL_ARB_texture_storage GL_AMD_shader_trinary_minmax
GL_ARB_clear_buffer_object GL_ARB_explicit_uniform_location
GL_ARB_invalidate_subdata GL_ARB_program_interface_query
GL_ARB_vertex_attrib_binding GL_KHR_debug
GL_ARB_internalformat_query2 GL_ARB_multi_bind
GL_ARB_get_texture_sub_image GL_KHR_context_flush_control
GL_ARB_parallel_shader_compile GL_KHR_no_error
GL_ARB_texture_filter_anisotropic
GL_KHR_parallel_shader_compile <br>
VisualID 311, 0x137<br>
FramebufferName 1<br>
texture 1<br>
new video info 0x5578cf6a58e0<br>
set video info ret 1<br>
allocation params<br>
allocation params 0x5578cf60a460 gl_context 0x5578cf673070<br>
pipeline 'appsrc stream-type=0 do-timestamp=1 emit-signals=0
format=3 is-live=1 name=source
caps="video/x-raw(memory:GLMemory), width=512, height=512,
framerate=(fraction)10/1, format=(string)RGBA,
texture-target=(string)external-oes" ! glcolorconvert !
gldownload ! x264enc tune=0x4 b-adapt=0 ! h264parse !
matroskamux ! filesink location="/tmp/test.mkv" sync=0'<br>
Pipeline play<br>
main pid 4625<br>
idle pid 4625<br>
add meta<br>
setup buffer<br>
<br>
** (app:4625): CRITICAL **: 13:20:33.001:
gst_gl_context_thread_add: assertion
'context->priv->active_thread == g_thread_self ()'
failed<br>
0:00:01.014606602 4625 0x5578cf7b1400 ERROR
glbasememory gstglbasememory.c:178:gst_gl_base_memory_init:
Could not create GL buffer with context:0x5578cf673070<br>
setup buffer ret 1<br>
<br>
** (app:4625): CRITICAL **: 13:20:33.001:
gst_gl_context_thread_add: assertion
'context->priv->active_thread == g_thread_self ()'
failed<br>
<br>
** (app:4625): CRITICAL **: 13:20:33.001:
gst_gl_context_thread_add: assertion
'context->priv->active_thread == g_thread_self ()'
failed<br>
0:00:01.014683888 4625 0x5578cf7b1400 ERROR
videometa gstvideometa.c:245:default_map: cannot map memory
range 0-1<br>
0:00:01.014692615 4625 0x5578cf7b1400 ERROR
default video-frame.c:168:gst_video_frame_map_id: failed to
map video frame plane 0<br>
failed on gst_video_frame_map<br>
</div>
<div>"</div>
<div dir="ltr"><br>
</div>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr"> Nikolay Frey <<a
href="mailto:nikolay.frey@gmail.com"
moz-do-not-send="true">nikolay.frey@gmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi all!<br>
<br>
I wrote a simple program to load the opengl textures into
the gstreamer pipeline, but it does not work. I can’t
understand what I am doing wrong. I want render graphics
to opengl texture and then use the texture as a source for
the pipeline.
<div>I would be grateful for any help.<br>
</div>
<div>I provide makefile, app source code and app output
log.</div>
<div>I use gstreamer 1.16.2 and linux ubuntu 19.10.</div>
<div><br>
</div>
<div>Thank you!</div>
<div><br>
</div>
</div>
</blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>