mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
a2dp: remove unused threshold field
This commit is contained in:
parent
7c84b1251d
commit
aea9d4fdfe
1 changed files with 0 additions and 6 deletions
|
|
@ -117,7 +117,6 @@ struct impl {
|
|||
|
||||
struct spa_source source;
|
||||
int timerfd;
|
||||
int threshold;
|
||||
struct spa_source flush_source;
|
||||
|
||||
struct spa_io_clock *clock;
|
||||
|
|
@ -1227,7 +1226,6 @@ static int port_set_format(struct impl *this, struct port *port,
|
|||
port->frame_size = info.info.raw.channels * 2;
|
||||
port->current_format = info;
|
||||
port->have_format = true;
|
||||
this->threshold = this->props.min_latency;
|
||||
}
|
||||
|
||||
port->info.change_mask |= SPA_PORT_CHANGE_MASK_PARAMS;
|
||||
|
|
@ -1306,7 +1304,6 @@ impl_node_port_use_buffers(void *object,
|
|||
spa_log_error(this->log, NAME " %p: need mapped memory", this);
|
||||
return -EINVAL;
|
||||
}
|
||||
this->threshold = buffers[i]->datas[0].maxsize / port->frame_size;
|
||||
}
|
||||
port->n_buffers = n_buffers;
|
||||
|
||||
|
|
@ -1377,9 +1374,6 @@ static int impl_node_process(void *object)
|
|||
SPA_FLAG_CLEAR(b->flags, BUFFER_FLAG_OUT);
|
||||
port->need_data = false;
|
||||
|
||||
this->threshold = SPA_MIN(b->buf->datas[0].chunk->size / port->frame_size,
|
||||
this->props.max_latency);
|
||||
|
||||
flush_data(this, now_time);
|
||||
|
||||
io->status = SPA_STATUS_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue