audioconvert: debug stride as well

This commit is contained in:
Wim Taymans 2020-09-21 11:20:53 +02:00
parent 995cf66f92
commit 392eff4628

View file

@ -245,7 +245,7 @@ static int negotiate_buffers(struct impl *this)
struct spa_pod *param; struct spa_pod *param;
int res; int res;
bool follower_alloc, conv_alloc; bool follower_alloc, conv_alloc;
uint32_t i, size, buffers, blocks, align, flags; uint32_t i, size, buffers, blocks, align, flags, stride = 0;
uint32_t *aligns; uint32_t *aligns;
struct spa_data *datas; struct spa_data *datas;
uint32_t follower_flags, conv_flags; uint32_t follower_flags, conv_flags;
@ -303,11 +303,12 @@ static int negotiate_buffers(struct impl *this)
SPA_PARAM_BUFFERS_buffers, SPA_POD_Int(&buffers), SPA_PARAM_BUFFERS_buffers, SPA_POD_Int(&buffers),
SPA_PARAM_BUFFERS_blocks, SPA_POD_Int(&blocks), SPA_PARAM_BUFFERS_blocks, SPA_POD_Int(&blocks),
SPA_PARAM_BUFFERS_size, SPA_POD_Int(&size), SPA_PARAM_BUFFERS_size, SPA_POD_Int(&size),
SPA_PARAM_BUFFERS_stride, SPA_POD_Int(&stride),
SPA_PARAM_BUFFERS_align, SPA_POD_Int(&align))) < 0) SPA_PARAM_BUFFERS_align, SPA_POD_Int(&align))) < 0)
return res; return res;
spa_log_debug(this->log, "%p: buffers %d, blocks %d, size %d, align %d %d:%d", spa_log_debug(this->log, "%p: buffers:%d, blocks:%d, size:%d, stride:%d align:%d %d:%d",
this, buffers, blocks, size, align, follower_alloc, conv_alloc); this, buffers, blocks, size, stride, align, follower_alloc, conv_alloc);
align = SPA_MAX(align, this->max_align); align = SPA_MAX(align, this->max_align);