<div dir="ltr">According to the FIXME it seems there is a problem with this example on Intel gpu. Indeed it requires to use the same display in both the 2 gl contexts (sdl, gst) to make them share the textures.<div>There is probably an other way than sdl_<span style="color:rgb(0,0,0);font-size:13px">info.info.x11.display. You need to retrieve the display used by sdl to create the sdl gl context.</span> </div><div><br></div><div>The fact that it remains black on nvidia gpu can be due to several reasons. You should check if sdl context is egl or glx. You should check that sdl_gl_context is valid. The example here assumes that sdl is  glx+opengl. It could be egl+gles2... Then you should adjust <span style="color:rgb(0,0,0);font-size:13px">gst_gl_context_new_wrapped</span></div><div>according to it.</div><div><br></div><div>Also it should match the gst gl "setup" you selected, using <a href="http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/gst-libs/gst/gl?id=707cb5800490a654e16ca683e104c1fb9ea3eb87">http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/gst-libs/gst/gl?id=707cb5800490a654e16ca683e104c1fb9ea3eb87</a></div><div><br></div><div>A log with GST_DEBUG would help.</div><div><br></div><div>What are you trying to achieve ? You have quite a nice infrastructure! The example is quite old and should be re-written not using fakesink (and this custom queue mecanism :) ) but it requires to improve glimagesink. I should open a bug about that...</div><div><br></div><div>Good Luck!</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 October 2014 18:11, Arnaud Loonstra <span dir="ltr"><<a href="mailto:arnaud@sphaero.org" target="_blank">arnaud@sphaero.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'm testing the new gl plugins of 1.4. The generic example runs fine even in Python. Now I'm trying to run the SDL example:<br>
<br>
<a href="http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tests/examples/gl/sdl/sdlshare.c" target="_blank">http://cgit.freedesktop.org/<u></u>gstreamer/gst-plugins-bad/<u></u>tree/tests/examples/gl/sdl/<u></u>sdlshare.c</a><br>
<br>
I can successfully compile it however it gives no output (black screen).<br>
On a intel (gpu) machine it crashes with:<br>
<br>
intel_do_flush_locked failed: No such file or directory<br>
<br>
I tested with a SNA and UXA backend. Seems a bug the intel driver?<br>
However I can get the colored triangle and blue square by disabling the texture bind. (l101 & 125)<br>
<br>
On a Nvidia GPU it runs but remains black even if I disable the texture bind.<br>
<br>
I've tested on Debian Jessie and Ubuntu Vivid with the provided Gstreamer packages (1.4.3). GPU's are<br>
GeForce GTX 560 Ti and Intel GM45.<br>
<br>
Anybody more success with the gl plugins?<span class="HOEnZb"><font color="#888888"><br>
<br>
Arnaud<br>
-- <br>
w: <a href="http://www.sphaero.org" target="_blank">http://www.sphaero.org</a><br>
t: <a href="http://twitter.com/sphaero" target="_blank">http://twitter.com/sphaero</a><br>
g: <a href="http://github.com/sphaero" target="_blank">http://github.com/sphaero</a><br>
i: freenode: sphaero_z25<br>
______________________________<u></u>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<u></u>freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/gstreamer-<u></u>devel</a><br>
</font></span></blockquote></div><br></div>