I'm currently trying to debug some code I've been given that is using
the client-draw-callback in glimagesinkelement to overlay some
dynamically created graphics on a video. The first time it's being
called, it follows a code path that seems to be setting up shaders for
the overlayed graphics, but it seems that a call to
gst_glsl_stage_new_default_fragment(ctx) is returning NULL and causing
repercussions later on.
The documentation for this function is seemingly non-existent, and this
isn't my code, so I'm a bit lost as to what could possibly be going
wrong here. Does anyone have any pointers they can give me on how to
debug what's going wrong here?
For reference, this seems to work okay on a desktop, but when trying to
run it on a Raspberry Pi (and hence OpenGL ES 2.0) it seems to fail.
I've pulled out the bits of the code that deal with setting up the
textures, right up until the failure, and you can find this attached.