mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
allocator: fix type of gst_memory_alignment to match declaration
Fixes compiler warnings such as gstallocator.c:61:8: error: conflicting types for 'gst_memory_alignment' ../gst/gstallocator.h:52:18: note: previous declaration of 'gst_memory_alignment' was here
This commit is contained in:
parent
766f754e01
commit
05bbd1b11a
1 changed files with 4 additions and 4 deletions
|
@ -58,15 +58,15 @@ struct _GstAllocatorPrivate
|
|||
};
|
||||
|
||||
#if defined(MEMORY_ALIGNMENT_MALLOC)
|
||||
size_t gst_memory_alignment = 7;
|
||||
gsize gst_memory_alignment = 7;
|
||||
#elif defined(MEMORY_ALIGNMENT_PAGESIZE)
|
||||
/* we fill this in in the _init method */
|
||||
size_t gst_memory_alignment = 0;
|
||||
gsize gst_memory_alignment = 0;
|
||||
#elif defined(MEMORY_ALIGNMENT)
|
||||
size_t gst_memory_alignment = MEMORY_ALIGNMENT - 1;
|
||||
gsize gst_memory_alignment = MEMORY_ALIGNMENT - 1;
|
||||
#else
|
||||
#error "No memory alignment configured"
|
||||
size_t gst_memory_alignment = 0;
|
||||
gsize gst_memory_alignment = 0;
|
||||
#endif
|
||||
|
||||
/* the default allocator */
|
||||
|
|
Loading…
Reference in a new issue