mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
memory: add size to debug log
This commit is contained in:
parent
014d10391c
commit
ffed76f258
1 changed files with 5 additions and 2 deletions
|
@ -258,8 +258,10 @@ _default_mem_copy (GstMemoryDefault * mem, gssize offset, gsize size)
|
||||||
copy =
|
copy =
|
||||||
_default_mem_new_block (0, mem->mem.maxsize, 0, mem->mem.offset + offset,
|
_default_mem_new_block (0, mem->mem.maxsize, 0, mem->mem.offset + offset,
|
||||||
size);
|
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);
|
memcpy (copy->data, mem->data, mem->mem.maxsize);
|
||||||
GST_CAT_DEBUG (GST_CAT_PERFORMANCE, "copy memory %p -> %p", mem, copy);
|
|
||||||
|
|
||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
|
@ -324,8 +326,9 @@ _fallback_mem_copy (GstMemory * mem, gssize offset, gssize size)
|
||||||
return NULL;
|
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);
|
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 (copy, &dinfo);
|
||||||
gst_memory_unmap (mem, &sinfo);
|
gst_memory_unmap (mem, &sinfo);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue