From 376b1eb262a888e43d6825b9def1a5363afd10af Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Fri, 13 Nov 2015 17:05:11 +0100 Subject: [PATCH] gstglcontext_egl: Expose gst_gl_context_egl_get_error_string. https://bugzilla.gnome.org/show_bug.cgi?id=743345 --- gst-libs/gst/gl/egl/gstglcontext_egl.c | 2 +- gst-libs/gst/gl/egl/gstglcontext_egl.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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