diff --git a/gst-libs/gst/gl/egl/gstglcontext_egl.c b/gst-libs/gst/gl/egl/gstglcontext_egl.c index 2d3af188bb..7911fc51fd 100644 --- a/gst-libs/gst/gl/egl/gstglcontext_egl.c +++ b/gst-libs/gst/gl/egl/gstglcontext_egl.c @@ -107,7 +107,7 @@ gst_gl_context_egl_new (GstGLDisplay * display) return g_object_new (GST_GL_TYPE_CONTEXT_EGL, NULL); } -static const gchar * +const gchar * gst_gl_context_egl_get_error_string (void) { EGLint nErr = eglGetError (); diff --git a/gst-libs/gst/gl/egl/gstglcontext_egl.h b/gst-libs/gst/gl/egl/gstglcontext_egl.h index 800794fc43..8339e5acfd 100644 --- a/gst-libs/gst/gl/egl/gstglcontext_egl.h +++ b/gst-libs/gst/gl/egl/gstglcontext_egl.h @@ -64,6 +64,9 @@ GstGLContextEGL * gst_gl_context_egl_new (GstGLDisplay * disp guintptr gst_gl_context_egl_get_current_context (void); gpointer gst_gl_context_egl_get_proc_address (GstGLAPI gl_api, const gchar * name); +const gchar * gst_gl_context_egl_get_error_string (void); + + /* TODO: * add support for EGL_NO_CONTEXT * add gst_gl_context_egl_new_gl_no_context that only manages the display