mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05: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->seqnum = 0;
|
||||||
|
|
||||||
this->block_size = this->codec->get_block_size(this->codec_data);
|
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)) {
|
if (this->block_size > sizeof(this->tmp_buffer)) {
|
||||||
spa_log_error(this->log, "block-size %d > %zu",
|
spa_log_error(this->log, "block-size %d > %zu",
|
||||||
this->block_size, sizeof(this->tmp_buffer));
|
this->block_size, sizeof(this->tmp_buffer));
|
||||||
|
|
@ -814,7 +814,7 @@ static const struct spa_dict_item node_info_items[] = {
|
||||||
{ SPA_KEY_DEVICE_API, "bluez5" },
|
{ SPA_KEY_DEVICE_API, "bluez5" },
|
||||||
{ SPA_KEY_MEDIA_CLASS, "Audio/Sink" },
|
{ SPA_KEY_MEDIA_CLASS, "Audio/Sink" },
|
||||||
{ SPA_KEY_NODE_DRIVER, "true" },
|
{ 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" },
|
{ 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[] = {
|
struct spa_dict_item node_info_items[] = {
|
||||||
{ SPA_KEY_DEVICE_API, "bluez5" },
|
{ SPA_KEY_DEVICE_API, "bluez5" },
|
||||||
{ SPA_KEY_MEDIA_CLASS, "Stream/Output/Audio" },
|
{ 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" },
|
{ SPA_KEY_NODE_PAUSE_ON_IDLE, "false" },
|
||||||
{ "media.name", ((this->transport && this->transport->device->name) ?
|
{ "media.name", ((this->transport && this->transport->device->name) ?
|
||||||
this->transport->device->name : "A2DP") },
|
this->transport->device->name : "A2DP") },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue