gst_glsl_stage_new_default_fragment returns NULL

Matthew Waters ystreet00 at gmail.com
Fri Sep 1 05:48:15 UTC 2017


If you look through the code at
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst-libs/gst/gl/gstglslstage.c#n191,
you will see that it reaches gst_glsl_stage_new_with_strings() which can
fail when

1. The GL function table does not contain the necessary shader
functions.  On the RPi, this could mean you're not building/running
against the correct OpenGL library/ies.
2. gst_gl_context_supports_glsl_profile_version() returns FALSE. Code
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst-libs/gst/gl/gstglsl.c#n558.
This doesn't seem to be the problem here though.

As usual, GST_DEBUG is your friend. Particularly the glshader and *glsl*
categories for shader-specific things.

Hope that helps.
-Matt


On 31/08/17 23:19, Samuel Hurst wrote:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 516 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170901/3c01e7ea/attachment.sig>


More information about the gstreamer-devel mailing list