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.
This commit is contained in:
Michael Tretter 2024-06-19 17:40:51 +02:00 committed by Wim Taymans
parent 6acfb53884
commit 6468e5338f

View file

@ -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),