v4l2: improve debug

This commit is contained in:
Wim Taymans 2012-06-26 13:19:02 +02:00
parent 77f33e591f
commit 56690cf021

View file

@ -114,7 +114,7 @@ gst_v4l2_buffer_pool_free_buffer (GstBufferPool * bpool, GstBuffer * buffer)
index = meta->vbuffer.index; index = meta->vbuffer.index;
GST_LOG_OBJECT (pool, GST_LOG_OBJECT (pool,
"mmap buffer %p idx %d (data %p, len %u) freed, unmapping", buffer, "unmap buffer %p idx %d (data %p, len %u)", buffer,
index, meta->mem, meta->vbuffer.length); index, meta->mem, meta->vbuffer.length);
v4l2_munmap (meta->mem, meta->vbuffer.length); v4l2_munmap (meta->mem, meta->vbuffer.length);
@ -496,6 +496,7 @@ gst_v4l2_buffer_pool_stop (GstBufferPool * bpool)
for (n = 0; n < pool->num_queued; n++) { for (n = 0; n < pool->num_queued; n++) {
gst_v4l2_buffer_pool_free_buffer (bpool, pool->buffers[n]); gst_v4l2_buffer_pool_free_buffer (bpool, pool->buffers[n]);
} }
pool->num_queued = 0;
g_free (pool->buffers); g_free (pool->buffers);
pool->buffers = NULL; pool->buffers = NULL;