diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-03-14 12:42:00 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-03-14 12:42:00 +0100 |
commit | d8578d5c0973302ebc01e82713ac0c6e880be810 (patch) | |
tree | 20e5dc32b0ca5be284448d3408cd556c3dc0419d | |
parent | d2d7be7b75f16e8a3dce5437e15f347eea4a6281 (diff) | |
download | gstreamer-d8578d5c0973302ebc01e82713ac0c6e880be810.tar.gz |
adapter: add more debug
-rw-r--r-- | libs/gst/base/gstadapter.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/gst/base/gstadapter.c b/libs/gst/base/gstadapter.c index 24dee757f8..a1e911c531 100644 --- a/libs/gst/base/gstadapter.c +++ b/libs/gst/base/gstadapter.c @@ -324,13 +324,14 @@ gst_adapter_push (GstAdapter * adapter, GstBuffer * buf) /* Note: merging buffers at this point is premature. */ if (G_UNLIKELY (adapter->buflist == NULL)) { - GST_LOG_OBJECT (adapter, "pushing first %" G_GSIZE_FORMAT " bytes", size); + GST_LOG_OBJECT (adapter, "pushing %p first %" G_GSIZE_FORMAT " bytes", + buf, size); adapter->buflist = adapter->buflist_end = g_slist_append (NULL, buf); update_timestamps (adapter, buf); } else { /* Otherwise append to the end, and advance our end pointer */ - GST_LOG_OBJECT (adapter, "pushing %" G_GSIZE_FORMAT " bytes at end, " - "size now %" G_GSIZE_FORMAT, size, adapter->size); + GST_LOG_OBJECT (adapter, "pushing %p %" G_GSIZE_FORMAT " bytes at end, " + "size now %" G_GSIZE_FORMAT, buf, size, adapter->size); adapter->buflist_end = g_slist_append (adapter->buflist_end, buf); adapter->buflist_end = g_slist_next (adapter->buflist_end); } @@ -505,6 +506,7 @@ gst_adapter_unmap (GstAdapter * adapter) if (priv->info.memory) { GstBuffer *cur = adapter->buflist->data; + GST_LOG_OBJECT (adapter, "unmap memory buffer %p", cur); gst_buffer_unmap (cur, &priv->info); priv->info.memory = NULL; } |