mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
a2dp: small cleanups
This commit is contained in:
parent
37d8cbd5d6
commit
e3d19e5602
2 changed files with 4 additions and 4 deletions
|
|
@ -676,7 +676,7 @@ static int do_start(struct impl *this)
|
|||
this->seqnum = 0;
|
||||
|
||||
this->block_size = this->codec->get_block_size(this->codec_data);
|
||||
this->num_blocks = this->codec->get_num_blocks(this->codec_data);
|
||||
update_num_blocks(this);
|
||||
if (this->block_size > sizeof(this->tmp_buffer)) {
|
||||
spa_log_error(this->log, "block-size %d > %zu",
|
||||
this->block_size, sizeof(this->tmp_buffer));
|
||||
|
|
@ -686,7 +686,7 @@ static int do_start(struct impl *this)
|
|||
spa_log_debug(this->log, NAME " %p: block_size %d num_blocks:%d", this,
|
||||
this->block_size, this->num_blocks);
|
||||
|
||||
val = this->codec->send_buf_size > 0
|
||||
val = this->codec->send_buf_size > 0
|
||||
/* The kernel doubles the SO_SNDBUF option value set by setsockopt(). */
|
||||
? this->codec->send_buf_size / 2 + this->codec->send_buf_size % 2
|
||||
: FILL_FRAMES * this->transport->write_mtu;
|
||||
|
|
@ -814,7 +814,7 @@ static const struct spa_dict_item node_info_items[] = {
|
|||
{ SPA_KEY_DEVICE_API, "bluez5" },
|
||||
{ SPA_KEY_MEDIA_CLASS, "Audio/Sink" },
|
||||
{ SPA_KEY_NODE_DRIVER, "true" },
|
||||
{ SPA_KEY_NODE_LATENCY, "512/48000" },
|
||||
{ SPA_KEY_NODE_LATENCY, SPA_STRINGIFY(MIN_LATENCY)"/48000" },
|
||||
{ SPA_KEY_NODE_PAUSE_ON_IDLE, "false" },
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -703,7 +703,7 @@ static void emit_node_info(struct impl *this, bool full)
|
|||
struct spa_dict_item node_info_items[] = {
|
||||
{ SPA_KEY_DEVICE_API, "bluez5" },
|
||||
{ SPA_KEY_MEDIA_CLASS, "Stream/Output/Audio" },
|
||||
{ SPA_KEY_NODE_LATENCY, "512/48000" },
|
||||
{ SPA_KEY_NODE_LATENCY, SPA_STRINGIFY(MIN_LATENCY)"/48000" },
|
||||
{ SPA_KEY_NODE_PAUSE_ON_IDLE, "false" },
|
||||
{ "media.name", ((this->transport && this->transport->device->name) ?
|
||||
this->transport->device->name : "A2DP") },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue