From 6468e5338f8c3aa51904c71f4b67ea4f4bc6b0a2 Mon Sep 17 00:00:00 2001 From: Michael Tretter Date: Wed, 19 Jun 2024 17:40:51 +0200 Subject: [PATCH] gst: pipewirepool: print buffer type with numeric value If the buffer type is invalid, the short_name will be (null). Printing the numeric value helps the reader to understand the (null) type. --- src/gst/gstpipewirepool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gst/gstpipewirepool.c b/src/gst/gstpipewirepool.c index dc74f60d4..64982306e 100644 --- a/src/gst/gstpipewirepool.c +++ b/src/gst/gstpipewirepool.c @@ -70,8 +70,8 @@ void gst_pipewire_pool_wrap_buffer (GstPipeWirePool *pool, struct pw_buffer *b) struct spa_data *d = &b->buffer->datas[i]; GstMemory *gmem = NULL; - GST_DEBUG_OBJECT (pool, "wrap data (%s) %d %d", - spa_debug_type_find_short_name(spa_type_data_type, d->type), + GST_DEBUG_OBJECT (pool, "wrap data (%s %d) %d %d", + spa_debug_type_find_short_name(spa_type_data_type, d->type), d->type, d->mapoffset, d->maxsize); if (d->type == SPA_DATA_MemFd) { gmem = gst_fd_allocator_alloc (pool->fd_allocator, dup(d->fd),