summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubosz Sarnecki <lubosz.sarnecki@collabora.co.uk>2015-11-13 17:05:11 +0100
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2015-12-18 15:56:33 -0500
commiteb73cf3c2e6699f09935788ddbeb2f2efea31771 (patch)
tree3ee9909a427e057881840691ff14a7551a600d26
parentfa1775aceec32aceeb52a50bf361f01f62f228fc (diff)
downloadgstreamer-plugins-bad-eb73cf3c2e6699f09935788ddbeb2f2efea31771.tar.gz
gstglcontext_egl: Expose gst_gl_context_egl_get_error_string.
https://bugzilla.gnome.org/show_bug.cgi?id=743345
-rw-r--r--gst-libs/gst/gl/egl/gstglcontext_egl.c2
-rw-r--r--gst-libs/gst/gl/egl/gstglcontext_egl.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/gst-libs/gst/gl/egl/gstglcontext_egl.c b/gst-libs/gst/gl/egl/gstglcontext_egl.c
index 2d3af188b..7911fc51f 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 800794fc4..8339e5acf 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