mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 15:36:42 +00:00
memory: explicitly cast to GstLockFlags to avoid compiler warnings
This commit is contained in:
parent
ebca6aa84f
commit
2b84b4bd97
1 changed files with 3 additions and 3 deletions
|
@ -290,7 +290,7 @@ gst_memory_map (GstMemory * mem, GstMapInfo * info, GstMapFlags flags)
|
||||||
g_return_val_if_fail (mem != NULL, FALSE);
|
g_return_val_if_fail (mem != NULL, FALSE);
|
||||||
g_return_val_if_fail (info != 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;
|
goto lock_failed;
|
||||||
|
|
||||||
info->data = mem->allocator->mem_map (mem, mem->maxsize, flags);
|
info->data = mem->allocator->mem_map (mem, mem->maxsize, flags);
|
||||||
|
@ -316,7 +316,7 @@ error:
|
||||||
{
|
{
|
||||||
/* something went wrong, restore the orginal state again */
|
/* something went wrong, restore the orginal state again */
|
||||||
GST_CAT_ERROR (GST_CAT_MEMORY, "mem %p: subclass map failed", mem);
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -336,7 +336,7 @@ gst_memory_unmap (GstMemory * mem, GstMapInfo * info)
|
||||||
g_return_if_fail (info->memory == mem);
|
g_return_if_fail (info->memory == mem);
|
||||||
|
|
||||||
mem->allocator->mem_unmap (mem);
|
mem->allocator->mem_unmap (mem);
|
||||||
gst_memory_unlock (mem, info->flags);
|
gst_memory_unlock (mem, (GstLockFlags) info->flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue