summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapidisplay.c
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-12-17 10:10:55 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-12-17 14:56:11 +0100
commitb6f80238e91e4e969974f8288f055a4227f48dc3 (patch)
tree3a1029138474c8f8f575fd6354bc2325e86fed9c /gst-libs/gst/vaapi/gstvaapidisplay.c
parentf17ac52573dae91eb524e570ac374778fb42a50d (diff)
libs: use glib >= 2.32 semantics for mutexes.
Use glib >= 2.32 semantics for GMutex and GRecMutex wrt. initialization and termination. Basically, the new mutex objects can be used as static mutex objects from the deprecated APIs, e.g. GStaticMutex and GStaticRecMutex.
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapidisplay.c')
-rw-r--r--gst-libs/gst/vaapi/gstvaapidisplay.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.c b/gst-libs/gst/vaapi/gstvaapidisplay.c
index 40ac5a65..35a3d57c 100644
--- a/gst-libs/gst/vaapi/gstvaapidisplay.c
+++ b/gst-libs/gst/vaapi/gstvaapidisplay.c
@@ -725,7 +725,7 @@ gst_vaapi_display_lock_default(GstVaapiDisplay *display)
if (priv->parent)
priv = priv->parent->priv;
- g_static_rec_mutex_lock(&priv->mutex);
+ g_rec_mutex_lock(&priv->mutex);
}
static void
@@ -735,7 +735,7 @@ gst_vaapi_display_unlock_default(GstVaapiDisplay *display)
if (priv->parent)
priv = priv->parent->priv;
- g_static_rec_mutex_unlock(&priv->mutex);
+ g_rec_mutex_unlock(&priv->mutex);
}
static void
@@ -745,7 +745,7 @@ gst_vaapi_display_finalize(GObject *object)
gst_vaapi_display_destroy(display);
- g_static_rec_mutex_free(&display->priv->mutex);
+ g_rec_mutex_clear(&display->priv->mutex);
G_OBJECT_CLASS(gst_vaapi_display_parent_class)->finalize(object);
}
@@ -998,7 +998,7 @@ gst_vaapi_display_init(GstVaapiDisplay *display)
priv->properties = NULL;
priv->create_display = TRUE;
- g_static_rec_mutex_init(&priv->mutex);
+ g_rec_mutex_init(&priv->mutex);
}
/**