mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +00:00
buffer: fix printf format
Use %u to print unsigned integers.
This commit is contained in:
parent
0723c86046
commit
8a4aed855a
1 changed files with 2 additions and 4 deletions
|
@ -283,8 +283,7 @@ _gst_buffer_copy (GstBuffer * buffer)
|
||||||
if (G_LIKELY (buffer->size)) {
|
if (G_LIKELY (buffer->size)) {
|
||||||
if (G_UNLIKELY (!aligned_malloc (&memptr, buffer->size))) {
|
if (G_UNLIKELY (!aligned_malloc (&memptr, buffer->size))) {
|
||||||
/* terminate on error like g_memdup() would */
|
/* terminate on error like g_memdup() would */
|
||||||
g_error ("%s: failed to allocate %" G_GSIZE_FORMAT " bytes",
|
g_error ("%s: failed to allocate %u bytes", G_STRLOC, buffer->size);
|
||||||
G_STRLOC, buffer->size);
|
|
||||||
} else {
|
} else {
|
||||||
memcpy (memptr, buffer->data, buffer->size);
|
memcpy (memptr, buffer->data, buffer->size);
|
||||||
}
|
}
|
||||||
|
@ -369,8 +368,7 @@ gst_buffer_new_and_alloc (guint size)
|
||||||
if (G_LIKELY (size)) {
|
if (G_LIKELY (size)) {
|
||||||
if (G_UNLIKELY (!aligned_malloc (&memptr, size))) {
|
if (G_UNLIKELY (!aligned_malloc (&memptr, size))) {
|
||||||
/* terminate on error like g_memdup() would */
|
/* terminate on error like g_memdup() would */
|
||||||
g_error ("%s: failed to allocate %" G_GSIZE_FORMAT " bytes",
|
g_error ("%s: failed to allocate %u bytes", G_STRLOC, size);
|
||||||
G_STRLOC, size);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
newbuf->malloc_data = (guint8 *) memptr;
|
newbuf->malloc_data = (guint8 *) memptr;
|
||||||
|
|
Loading…
Reference in a new issue