mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
v4l2: improve debug
This commit is contained in:
parent
77f33e591f
commit
56690cf021
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue