mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
shm: fix debug messages
Misc. printf format fixes and missing arguments.
This commit is contained in:
parent
4556222718
commit
26e9df08b8
2 changed files with 10 additions and 9 deletions
|
@ -213,12 +213,13 @@ gst_shm_sink_set_property (GObject * object, guint prop_id,
|
||||||
break;
|
break;
|
||||||
case PROP_SHM_SIZE:
|
case PROP_SHM_SIZE:
|
||||||
GST_OBJECT_LOCK (object);
|
GST_OBJECT_LOCK (object);
|
||||||
if (sp_writer_resize (self->pipe, g_value_get_uint (value)) < 0)
|
if (sp_writer_resize (self->pipe, g_value_get_uint (value)) < 0) {
|
||||||
GST_DEBUG_OBJECT (self,
|
GST_DEBUG_OBJECT (self, "Resized shared memory area from %u to "
|
||||||
"Resize shared memory area from %u to %u bytes");
|
"%u bytes", self->size, g_value_get_uint (value));
|
||||||
else
|
} else {
|
||||||
GST_WARNING_OBJECT (self,
|
GST_WARNING_OBJECT (self, "Could not resize shared memory area from %u "
|
||||||
"Could not resize shared memory area from %u to %u bytes");
|
"to %u bytes", self->size, g_value_get_uint (value));
|
||||||
|
}
|
||||||
self->size = g_value_get_uint (value);
|
self->size = g_value_get_uint (value);
|
||||||
GST_OBJECT_UNLOCK (object);
|
GST_OBJECT_UNLOCK (object);
|
||||||
break;
|
break;
|
||||||
|
@ -436,10 +437,10 @@ gst_shm_sink_buffer_alloc (GstBaseSink * sink, guint64 offset, guint size,
|
||||||
GST_DEBUG_FUNCPTR (gst_shm_sink_free_buffer);
|
GST_DEBUG_FUNCPTR (gst_shm_sink_free_buffer);
|
||||||
GST_BUFFER_SIZE (buffer) = size;
|
GST_BUFFER_SIZE (buffer) = size;
|
||||||
GST_LOG_OBJECT (self,
|
GST_LOG_OBJECT (self,
|
||||||
"Allocated buffer of %lu bytes from shared memory at %p", size, buf);
|
"Allocated buffer of %u bytes from shared memory at %p", size, buf);
|
||||||
} else {
|
} else {
|
||||||
buffer = gst_buffer_new_and_alloc (size);
|
buffer = gst_buffer_new_and_alloc (size);
|
||||||
GST_LOG_OBJECT (self, "Not enough shared memory for buffer of %lu bytes, "
|
GST_LOG_OBJECT (self, "Not enough shared memory for buffer of %u bytes, "
|
||||||
"allocating using standard allocator", size);
|
"allocating using standard allocator", size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -305,7 +305,7 @@ gst_shm_src_create (GstPushSrc * psrc, GstBuffer ** outbuf)
|
||||||
}
|
}
|
||||||
} while (buf == NULL);
|
} while (buf == NULL);
|
||||||
|
|
||||||
GST_LOG_OBJECT (self, "Got buffer %p of size %d %d", buf, rv);
|
GST_LOG_OBJECT (self, "Got buffer %p of size %d", buf, rv);
|
||||||
|
|
||||||
gsb = g_slice_new0 (struct GstShmBuffer);
|
gsb = g_slice_new0 (struct GstShmBuffer);
|
||||||
gsb->buf = buf;
|
gsb->buf = buf;
|
||||||
|
|
Loading…
Reference in a new issue