summaryrefslogtreecommitdiff
path: root/ext/gl
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-07-12 15:29:29 +1000
committerMatthew Waters <matthew@centricular.com>2016-07-26 14:07:24 +1000
commit06b4b52a2092b54cc6c10ca0c23e57f17782d994 (patch)
treeadfd83bf2addfb4ff802d316008c2ae64d7de9b5 /ext/gl
parent518e8a3fd2e1e29f6435df46eb1c9e2d63aa46ef (diff)
downloadgstreamer-plugins-bad-06b4b52a2092b54cc6c10ca0c23e57f17782d994.tar.gz
glcontext: remove not thread-safe get/set_error()
Use GError's instead if necessary.
Diffstat (limited to 'ext/gl')
-rw-r--r--ext/gl/gstglimagesink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c
index f176c235c..47314329f 100644
--- a/ext/gl/gstglimagesink.c
+++ b/ext/gl/gstglimagesink.c
@@ -1777,7 +1777,7 @@ gst_glimage_sink_show_frame (GstVideoSink * vsink, GstBuffer * buf)
if (g_atomic_int_get (&glimage_sink->to_quit) != 0) {
GST_ELEMENT_ERROR (glimage_sink, RESOURCE, NOT_FOUND,
- ("%s", gst_gl_context_get_error ()), (NULL));
+ ("%s", "Quit requested"), (NULL));
return GST_FLOW_ERROR;
}
@@ -1787,7 +1787,7 @@ gst_glimage_sink_show_frame (GstVideoSink * vsink, GstBuffer * buf)
redisplay_failed:
{
GST_ELEMENT_ERROR (glimage_sink, RESOURCE, NOT_FOUND,
- ("%s", gst_gl_context_get_error ()), (NULL));
+ ("%s", "Window redisplay failed"), (NULL));
return GST_FLOW_ERROR;
}
}
@@ -2306,7 +2306,7 @@ gst_glimage_sink_on_close (GstGLImageSink * gl_sink)
{
GstGLWindow *window;
- gst_gl_context_set_error (gl_sink->context, "Output window was closed");
+ GST_WARNING_OBJECT (gl_sink, "Output window was closed");
window = gst_gl_context_get_window (gl_sink->context);