gl/colorconvert: use GstObject's lock instead of our own

This commit is contained in:
Matthew Waters 2014-05-29 17:29:41 +10:00
parent 768c6de84e
commit 4b5c5a7d37
2 changed files with 4 additions and 9 deletions

View file

@ -409,7 +409,6 @@ gst_gl_color_convert_class_init (GstGLColorConvertClass * klass)
static void
gst_gl_color_convert_init (GstGLColorConvert * convert)
{
g_mutex_init (&convert->lock);
}
/**
@ -448,8 +447,6 @@ gst_gl_color_convert_finalize (GObject * object)
convert->context = NULL;
}
g_mutex_clear (&convert->lock);
G_OBJECT_CLASS (gst_gl_color_convert_parent_class)->finalize (object);
}
@ -515,9 +512,9 @@ void
gst_gl_color_convert_set_format (GstGLColorConvert * convert,
GstVideoInfo * in_info, GstVideoInfo * out_info)
{
g_mutex_lock (&convert->lock);
GST_OBJECT_LOCK (convert);
_gst_gl_color_convert_set_format_unlocked (convert, in_info, out_info);
g_mutex_unlock (&convert->lock);
GST_OBJECT_UNLOCK (convert);
}
/**
@ -537,9 +534,9 @@ gst_gl_color_convert_perform (GstGLColorConvert * convert, GstBuffer * inbuf)
g_return_val_if_fail (convert != NULL, FALSE);
g_mutex_lock (&convert->lock);
GST_OBJECT_LOCK (convert);
ret = _gst_gl_color_convert_perform_unlocked (convert, inbuf);
g_mutex_unlock (&convert->lock);
GST_OBJECT_UNLOCK (convert);
return ret;
}

View file

@ -46,8 +46,6 @@ struct _GstGLColorConvert
/* <private> */
GstObject parent;
GMutex lock;
GstGLContext *context;
/* input data */