improve debug

This commit is contained in:
Wim Taymans 2020-12-06 09:32:12 +01:00
parent 6d494c120f
commit 316a96d501
3 changed files with 24 additions and 9 deletions

View file

@ -595,9 +595,10 @@ static void a2dp_on_timeout(struct spa_source *source)
static int do_start(struct impl *this)
{
int res, val;
int i, res, val, size;
struct port *port;
socklen_t len;
uint8_t *conf;
if (this->started)
return 0;
@ -613,6 +614,12 @@ static int do_start(struct impl *this)
port = &this->port;
conf = this->transport->configuration;
size = this->transport->configuration_len;
for (i = 0; i < size; i++)
spa_log_debug(this->log, " %d: %02x", i, conf[i]);
this->codec_data = this->codec->init(this->codec, 0,
this->transport->configuration,
this->transport->configuration_len,