g_return_val_if_fail (mem != NULL, FALSE);
g_return_val_if_fail (info != NULL, FALSE);
- if (!gst_memory_lock (mem, flags))
+ if (!gst_memory_lock (mem, (GstLockFlags) flags))
goto lock_failed;
info->data = mem->allocator->mem_map (mem, mem->maxsize, flags);
{
/* something went wrong, restore the orginal state again */
GST_CAT_ERROR (GST_CAT_MEMORY, "mem %p: subclass map failed", mem);
- gst_memory_unlock (mem, flags);
+ gst_memory_unlock (mem, (GstLockFlags) flags);
return FALSE;
}
}
g_return_if_fail (info->memory == mem);
mem->allocator->mem_unmap (mem);
- gst_memory_unlock (mem, info->flags);
+ gst_memory_unlock (mem, (GstLockFlags) info->flags);
}
/**