add some more debug

This commit is contained in:
Wim Taymans 2018-10-09 15:17:31 +02:00
parent caa3e83eb1
commit 754782f302
2 changed files with 8 additions and 5 deletions

View file

@ -457,7 +457,7 @@ impl_node_port_enum_params(struct spa_node *node,
param = spa_pod_builder_object(&b,
SPA_TYPE_OBJECT_ParamBuffers, id,
SPA_PARAM_BUFFERS_buffers, &SPA_POD_CHOICE_RANGE_Int(buffers, 2, MAX_BUFFERS),
SPA_PARAM_BUFFERS_buffers, &SPA_POD_CHOICE_RANGE_Int(buffers, 1, MAX_BUFFERS),
SPA_PARAM_BUFFERS_blocks, &SPA_POD_Int(port->blocks),
SPA_PARAM_BUFFERS_size, pod,
SPA_PARAM_BUFFERS_stride, &SPA_POD_Int(port->stride),
@ -853,8 +853,8 @@ static int impl_node_process(struct spa_node *node)
outb->datas[i].chunk->size = (n_bytes / inport->stride) * outport->stride;
}
spa_log_trace(this->log, NAME " %p: %d %d %d %d", this,
n_src_datas, n_dst_datas, inport->offset, n_bytes);
spa_log_trace(this->log, NAME " %p: %d %d %d %d %d %d", this,
n_src_datas, n_dst_datas, inport->offset, size, maxsize, n_bytes);
this->convert(this, n_dst_datas, dst_datas, n_src_datas, src_datas, n_bytes);

View file

@ -1163,8 +1163,11 @@ int pw_stream_get_time(struct pw_stream *stream, struct pw_time *time)
else
time->queued = (int64_t)(impl->queued.incount - time->queued);
pw_log_trace("%ld %ld %d/%d %ld",
time->now, time->ticks, time->rate.num, time->rate.denom, time->queued);
pw_log_trace("%ld %ld %ld %d/%d %ld %ld %ld %ld %ld",
time->now, time->delay, time->ticks,
time->rate.num, time->rate.denom, time->queued,
impl->dequeued.outcount, impl->dequeued.incount,
impl->queued.outcount, impl->queued.incount);
return 0;
}