memory: only check the locking refcount

This commit is contained in:
Wim Taymans 2012-07-03 13:47:30 +02:00
parent 703683f51b
commit 4a0dd59808

View file

@ -133,7 +133,7 @@ static void
_gst_memory_free (GstMemory * mem)
{
/* there should be no outstanding mappings */
g_return_if_fail (g_atomic_int_get (&mem->state) < 4);
g_return_if_fail ((g_atomic_int_get (&mem->state) & LOCK_MASK) < 4);
mem->allocator->info.mem_free (mem);
}