gstreamer: memory: add size to debug log
Wim Taymans
wtay at kemper.freedesktop.org
Mon Apr 16 01:32:41 PDT 2012
Module: gstreamer
Branch: master
Commit: ffed76f25840855139751f03cdedc1a24a84372a
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=ffed76f25840855139751f03cdedc1a24a84372a
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Mon Apr 16 10:28:15 2012 +0200
memory: add size to debug log
---
gst/gstmemory.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/gst/gstmemory.c b/gst/gstmemory.c
index 5a7f289..022d397 100644
--- a/gst/gstmemory.c
+++ b/gst/gstmemory.c
@@ -258,8 +258,10 @@ _default_mem_copy (GstMemoryDefault * mem, gssize offset, gsize size)
copy =
_default_mem_new_block (0, mem->mem.maxsize, 0, mem->mem.offset + offset,
size);
+ GST_CAT_DEBUG (GST_CAT_PERFORMANCE,
+ "memcpy %" G_GSIZE_FORMAT " memory %p -> %p", mem->mem.maxsize, mem,
+ copy);
memcpy (copy->data, mem->data, mem->mem.maxsize);
- GST_CAT_DEBUG (GST_CAT_PERFORMANCE, "copy memory %p -> %p", mem, copy);
return copy;
}
@@ -324,8 +326,9 @@ _fallback_mem_copy (GstMemory * mem, gssize offset, gssize size)
return NULL;
}
+ GST_CAT_DEBUG (GST_CAT_PERFORMANCE,
+ "memcpy %" G_GSSIZE_FORMAT " memory %p -> %p", size, mem, copy);
memcpy (dinfo.data, sinfo.data + offset, size);
- GST_CAT_DEBUG (GST_CAT_PERFORMANCE, "copy memory %p -> %p", mem, copy);
gst_memory_unmap (copy, &dinfo);
gst_memory_unmap (mem, &sinfo);
More information about the gstreamer-commits
mailing list