From 5522cceb5599a6c695e859ae2915f9931401a764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 4 Jan 2013 17:19:25 +0000 Subject: [PATCH] inter: don't use deprecated GStaticMutex API --- gst/inter/gstintersurface.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/inter/gstintersurface.c b/gst/inter/gstintersurface.c index 0fc1c84cc5..1876a031e2 100644 --- a/gst/inter/gstintersurface.c +++ b/gst/inter/gstintersurface.c @@ -27,7 +27,7 @@ #include "gstintersurface.h" static GList *list; -static GStaticMutex mutex = G_STATIC_MUTEX_INIT; +static GMutex mutex; GstInterSurface * @@ -36,12 +36,12 @@ gst_inter_surface_get (const char *name) GList *g; GstInterSurface *surface; - g_static_mutex_lock (&mutex); + g_mutex_lock (&mutex); for (g = list; g; g = g_list_next (g)) { surface = (GstInterSurface *) g->data; if (strcmp (name, surface->name) == 0) { - g_static_mutex_unlock (&mutex); + g_mutex_unlock (&mutex); return surface; } } @@ -52,7 +52,7 @@ gst_inter_surface_get (const char *name) surface->audio_adapter = gst_adapter_new (); list = g_list_append (list, surface); - g_static_mutex_unlock (&mutex); + g_mutex_unlock (&mutex); return surface; }