summaryrefslogtreecommitdiff
path: root/gst/autoconvert/gstautovideoconvert.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2012-12-14 18:09:06 +0000
committerTim-Philipp Müller <tim@centricular.net>2012-12-14 18:09:06 +0000
commit8b2641805f792fbf51999f881f9feb33f7853609 (patch)
tree162b4c7ed1fc43636a2420fef4102d999a3aec5c /gst/autoconvert/gstautovideoconvert.c
parent0e0dd05fd645b32a10b5d5da74f2feb67010ec87 (diff)
downloadgstreamer-plugins-bad-8b2641805f792fbf51999f881f9feb33f7853609.tar.gz
autoconvert: don't use deprecated threading API
Diffstat (limited to 'gst/autoconvert/gstautovideoconvert.c')
-rw-r--r--gst/autoconvert/gstautovideoconvert.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/autoconvert/gstautovideoconvert.c b/gst/autoconvert/gstautovideoconvert.c
index e83e9ef03..271d6f540 100644
--- a/gst/autoconvert/gstautovideoconvert.c
+++ b/gst/autoconvert/gstautovideoconvert.c
@@ -37,9 +37,9 @@
GST_DEBUG_CATEGORY (autovideoconvert_debug);
#define GST_CAT_DEFAULT (autovideoconvert_debug)
-GStaticMutex factories_mutex = G_STATIC_MUTEX_INIT;
-guint32 factories_cookie = 0; /* Cookie from last time when factories was updated */
-GList *factories = NULL; /* factories we can use for selecting elements */
+static GMutex factories_mutex;
+static guint32 factories_cookie = 0; /* Cookie from last time when factories was updated */
+static GList *factories = NULL; /* factories we can use for selecting elements */
/* element factory information */
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
@@ -105,7 +105,7 @@ gst_auto_video_convert_update_factory_list (GstAutoVideoConvert *
autovideoconvert)
{
/* use a static mutex to protect factories list and factories cookie */
- g_static_mutex_lock (&factories_mutex);
+ g_mutex_lock (&factories_mutex);
/* test if a factories list already exist or not */
if (!factories) {
@@ -127,7 +127,7 @@ gst_auto_video_convert_update_factory_list (GstAutoVideoConvert *
}
}
- g_static_mutex_unlock (&factories_mutex);
+ g_mutex_unlock (&factories_mutex);
}
G_DEFINE_TYPE (GstAutoVideoConvert, gst_auto_video_convert, GST_TYPE_BIN);