shmsink: Use correct print format specifiers to fix compiler warnings
This commit is contained in:
parent
c2446a70f6
commit
87e053386a
@ -263,8 +263,9 @@ gst_shm_sink_allocator_alloc_locked (GstShmSinkAllocator * self, gsize size,
|
|||||||
GstShmSinkMemory *mymem;
|
GstShmSinkMemory *mymem;
|
||||||
gsize aoffset, padding;
|
gsize aoffset, padding;
|
||||||
|
|
||||||
GST_LOG_OBJECT (self, "Allocated block %p with %u bytes at %p",
|
GST_LOG_OBJECT (self,
|
||||||
block, size, sp_writer_block_get_buf (block));
|
"Allocated block %p with %" G_GSIZE_FORMAT " bytes at %p", block, size,
|
||||||
|
sp_writer_block_get_buf (block));
|
||||||
|
|
||||||
mymem = g_slice_new0 (GstShmSinkMemory);
|
mymem = g_slice_new0 (GstShmSinkMemory);
|
||||||
memory = GST_MEMORY_CAST (mymem);
|
memory = GST_MEMORY_CAST (mymem);
|
||||||
@ -306,8 +307,9 @@ gst_shm_sink_allocator_alloc (GstAllocator * allocator, gsize size,
|
|||||||
|
|
||||||
if (!memory) {
|
if (!memory) {
|
||||||
memory = gst_allocator_alloc (NULL, size, params);
|
memory = gst_allocator_alloc (NULL, size, params);
|
||||||
GST_LOG_OBJECT (self, "Not enough shared memory for GstMemory of %u bytes, "
|
GST_LOG_OBJECT (self,
|
||||||
"allocating using standard allocator", size);
|
"Not enough shared memory for GstMemory of %" G_GSIZE_FORMAT
|
||||||
|
"bytes, allocating using standard allocator", size);
|
||||||
}
|
}
|
||||||
|
|
||||||
return memory;
|
return memory;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user