summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2013-01-04 17:19:25 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2013-01-04 17:19:25 +0000
commit5522cceb5599a6c695e859ae2915f9931401a764 (patch)
treeeb4edfd87c7b9698013c3b564cb3e8d63fde2388 /gst
parent1b88d7cada1046d2a38a4fd5848909f6726cef80 (diff)
inter: don't use deprecated GStaticMutex API
Diffstat (limited to 'gst')
-rw-r--r--gst/inter/gstintersurface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/inter/gstintersurface.c b/gst/inter/gstintersurface.c
index 0fc1c84cc..1876a031e 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;
}