bluez: avoid some compiler warnings

This commit is contained in:
Wim Taymans 2025-05-28 15:15:25 +02:00
parent a1be639894
commit d9b742cfda
2 changed files with 2 additions and 2 deletions

View file

@ -506,7 +506,7 @@ static void media_on_ready_read(struct spa_source *source)
int32_t size_read, decoded;
uint32_t avail;
uint64_t dt;
uint64_t now;
uint64_t now = 0;
/* make sure the source is an input */
if ((source->rmask & SPA_IO_IN) == 0) {

View file

@ -97,7 +97,7 @@ static void sco_io_on_ready(struct spa_source *source)
if (SPA_FLAG_IS_SET(source->rmask, SPA_IO_IN)) {
int res;
uint64_t rx_time;
uint64_t rx_time = 0;
read_again:
res = spa_bt_recvmsg(&io->recv, io->read_buffer, SPA_MIN(io->read_mtu, MAX_MTU), &rx_time);