IDXGIFactory1 *factory;
GArray *format_table;
- GRecMutex extern_lock;
+ CRITICAL_SECTION extern_lock;
GMutex resource_lock;
LARGE_INTEGER frequency;
priv->format_table = g_array_sized_new (FALSE, FALSE,
sizeof (GstD3D11Format), GST_D3D11_N_FORMATS);
- g_rec_mutex_init (&priv->extern_lock);
+ InitializeCriticalSection (&priv->extern_lock);
g_mutex_init (&priv->resource_lock);
self->priv = priv;
GST_LOG_OBJECT (self, "finalize");
g_array_unref (priv->format_table);
- g_rec_mutex_clear (&priv->extern_lock);
+ DeleteCriticalSection (&priv->extern_lock);
g_mutex_clear (&priv->resource_lock);
g_free (priv->description);
priv = device->priv;
GST_TRACE_OBJECT (device, "device locking");
- g_rec_mutex_lock (&priv->extern_lock);
+ EnterCriticalSection (&priv->extern_lock);
GST_TRACE_OBJECT (device, "device locked");
}
priv = device->priv;
- g_rec_mutex_unlock (&priv->extern_lock);
+ LeaveCriticalSection (&priv->extern_lock);
GST_TRACE_OBJECT (device, "device unlocked");
}