glmixer: remove redundant/unused lock
authorMatthew Waters <ystreet00@gmail.com>
Thu, 26 Jun 2014 01:15:56 +0000 (11:15 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:44 +0000 (19:31 +0000)
Use the GstObject lock instead

gst-libs/gst/gl/gstglmixer.c
gst-libs/gst/gl/gstglmixer.h

index a3e5ec5..626eb96 100644 (file)
@@ -45,13 +45,6 @@ static gboolean gst_gl_mixer_do_bufferpool (GstGLMixer * mix,
 #define GST_CAT_DEFAULT gst_gl_mixer_debug
 GST_DEBUG_CATEGORY (gst_gl_mixer_debug);
 
-#define GST_GL_MIXER_GET_LOCK(mix) \
-  (GST_GL_MIXER(mix)->lock)
-#define GST_GL_MIXER_LOCK(mix) \
-  (g_mutex_lock(&GST_GL_MIXER_GET_LOCK (mix)))
-#define GST_GL_MIXER_UNLOCK(mix) \
-  (g_mutex_unlock(&GST_GL_MIXER_GET_LOCK (mix)))
-
 static void gst_gl_mixer_pad_get_property (GObject * object, guint prop_id,
     GValue * value, GParamSpec * pspec);
 static void gst_gl_mixer_pad_set_property (GObject * object, guint prop_id,
@@ -429,7 +422,6 @@ static void
 gst_gl_mixer_init (GstGLMixer * mix)
 {
   mix->priv = GST_GL_MIXER_GET_PRIVATE (mix);
-  g_mutex_init (&mix->lock);
   mix->array_buffers = 0;
   mix->display = NULL;
   mix->fbo = 0;
@@ -442,14 +434,9 @@ gst_gl_mixer_init (GstGLMixer * mix)
 static void
 gst_gl_mixer_finalize (GObject * object)
 {
-  GstGLMixer *mix = GST_GL_MIXER (object);
-
-  g_mutex_clear (&mix->lock);
-
   G_OBJECT_CLASS (parent_class)->finalize (object);
 }
 
-
 static void
 gst_gl_mixer_set_context (GstElement * element, GstContext * context)
 {
index c056e6a..7e66acc 100644 (file)
@@ -59,9 +59,6 @@ struct _GstGLMixer
 
   GstGLMixerPrivate *priv;
 
-  /* Lock to prevent the state to change while blending */
-  GMutex lock;
-
   GPtrArray *array_buffers;
   GPtrArray *frames;