summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorMatthew Waters <ystreet00@gmail.com>2014-02-05 00:44:18 +1100
committerMatthew Waters <ystreet00@gmail.com>2014-03-15 18:37:06 +0100
commitaf3a68db7dc473fb6903c18966b39e4c3f1464d7 (patch)
tree730132036f441ae5a4d3883fb78f069fc5f1b956 /gst
parent75825b36264d6b0992a4364b488f1b22428763cf (diff)
downloadgstreamer-plugins-bad-af3a68db7dc473fb6903c18966b39e4c3f1464d7.tar.gz
[880/906] glimagesink: remove unused stored_buffer field
It has the potential to cause deadlocks.
Diffstat (limited to 'gst')
-rw-r--r--gst/gl/gstglimagesink.c6
-rw-r--r--gst/gl/gstglimagesink.h1
2 files changed, 0 insertions, 7 deletions
diff --git a/gst/gl/gstglimagesink.c b/gst/gl/gstglimagesink.c
index 84e1ee81a..a609b1b58 100644
--- a/gst/gl/gstglimagesink.c
+++ b/gst/gl/gstglimagesink.c
@@ -274,7 +274,6 @@ gst_glimage_sink_init (GstGLImageSink * glimage_sink)
glimage_sink->par_n = 0;
glimage_sink->par_d = 1;
glimage_sink->pool = NULL;
- glimage_sink->stored_buffer = NULL;
glimage_sink->redisplay_texture = 0;
g_mutex_init (&glimage_sink->drawing_lock);
@@ -547,10 +546,6 @@ gst_glimage_sink_change_state (GstElement * element, GstStateChange transition)
*/
GST_GLIMAGE_SINK_LOCK (glimage_sink);
glimage_sink->redisplay_texture = 0;
- if (glimage_sink->stored_buffer) {
- gst_buffer_unref (glimage_sink->stored_buffer);
- glimage_sink->stored_buffer = NULL;
- }
GST_GLIMAGE_SINK_UNLOCK (glimage_sink);
if (glimage_sink->upload) {
@@ -758,7 +753,6 @@ gst_glimage_sink_render (GstBaseSink * bsink, GstBuffer * buf)
/* Avoid to release the texture while drawing */
GST_GLIMAGE_SINK_LOCK (glimage_sink);
glimage_sink->redisplay_texture = tex_id;
- gst_buffer_replace (&glimage_sink->stored_buffer, buf);
GST_GLIMAGE_SINK_UNLOCK (glimage_sink);
/* Ask the underlying window to redraw its content */
diff --git a/gst/gl/gstglimagesink.h b/gst/gl/gstglimagesink.h
index 63809da07..88cdbfffa 100644
--- a/gst/gl/gstglimagesink.h
+++ b/gst/gl/gstglimagesink.h
@@ -77,7 +77,6 @@ struct _GstGLImageSink
/* avoid replacing the stored_buffer while drawing */
GMutex drawing_lock;
- GstBuffer *stored_buffer;
GLuint redisplay_texture;
#if GST_GL_HAVE_GLES2