mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-12 13:30:15 -05:00
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:
parent
6acfb53884
commit
6468e5338f
1 changed files with 2 additions and 2 deletions
|
|
@ -70,8 +70,8 @@ void gst_pipewire_pool_wrap_buffer (GstPipeWirePool *pool, struct pw_buffer *b)
|
||||||
struct spa_data *d = &b->buffer->datas[i];
|
struct spa_data *d = &b->buffer->datas[i];
|
||||||
GstMemory *gmem = NULL;
|
GstMemory *gmem = NULL;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (pool, "wrap data (%s) %d %d",
|
GST_DEBUG_OBJECT (pool, "wrap data (%s %d) %d %d",
|
||||||
spa_debug_type_find_short_name(spa_type_data_type, d->type),
|
spa_debug_type_find_short_name(spa_type_data_type, d->type), d->type,
|
||||||
d->mapoffset, d->maxsize);
|
d->mapoffset, d->maxsize);
|
||||||
if (d->type == SPA_DATA_MemFd) {
|
if (d->type == SPA_DATA_MemFd) {
|
||||||
gmem = gst_fd_allocator_alloc (pool->fd_allocator, dup(d->fd),
|
gmem = gst_fd_allocator_alloc (pool->fd_allocator, dup(d->fd),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue