GNOME Bugzilla – Bug 747124
glbasefilter: avoid segfault when gl platform is not available
Last modified: 2015-04-10 16:02:39 UTC
Created attachment 300682 [details] [review] Patch to fix the seg fault. If you run ./configure --disable-glx --enable-egl --disable-opengl --enable-gles2 for master and then run GST_DEBUG=*:2 GST_GL_WINDOW=x11 GST_GL_API=opengl GST_GL_PLATFORM=glx gst-launch-1.0 videotestsrc ! glupload ! gleffects effect=glow ! glimagesink It will seg fault. gstglimagesink.c(781): _ensure_gl_setup (): /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... ** (gst-launch-1.0:9360): CRITICAL **: gst_gl_context_create: assertion 'GST_GL_IS_CONTEXT (context)' failed Program received signal SIGSEGV, Segmentation fault.
+ Trace 234930
Thread 140737253140224 (LWP 9364)
I've added patch fixing it, please have look.
Review of attachment 300682 [details] [review]: Looks good, I'll just rename commit message to "glbasefilter: avoid seg fault when trying to use unavailable gl platform" and add the bug link.
Review of attachment 300682 [details] [review]: commit 6a2e986f070ac1f47971a09d42663519b57d6644 Author: Anton Obzhirov <obzhirov@yahoo.co.uk> Date: Tue Mar 31 17:10:45 2015 +0100 glbasefilter: avoid segfault when gl platform is not available https://bugzilla.gnome.org/show_bug.cgi?id=747124