mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
audioadapter: we don't need to clear the dynamic flag
This commit is contained in:
parent
a9bce3803a
commit
afd6e578a8
1 changed files with 10 additions and 12 deletions
|
|
@ -283,20 +283,18 @@ static void convert_port_info(void *data,
|
||||||
const struct spa_port_info *info)
|
const struct spa_port_info *info)
|
||||||
{
|
{
|
||||||
struct impl *this = data;
|
struct impl *this = data;
|
||||||
bool monitor;
|
|
||||||
|
|
||||||
monitor = (info->props &&
|
if (direction != this->direction) {
|
||||||
spa_dict_lookup(info->props, SPA_KEY_PORT_MONITOR) != NULL);
|
if (port_id == 0)
|
||||||
if (monitor)
|
return;
|
||||||
port_id -= 1;
|
else
|
||||||
|
port_id--;
|
||||||
spa_log_debug(this->log, NAME" %p: port info %d", this, port_id);
|
|
||||||
|
|
||||||
if (direction == this->direction || monitor) {
|
|
||||||
struct spa_port_info i = *info;
|
|
||||||
SPA_FLAG_UNSET(i.flags, SPA_PORT_FLAG_DYNAMIC_DATA);
|
|
||||||
spa_node_emit_port_info(&this->hooks, direction, port_id, &i);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spa_log_debug(this->log, NAME" %p: port info %d:%d", this,
|
||||||
|
direction, port_id);
|
||||||
|
|
||||||
|
spa_node_emit_port_info(&this->hooks, direction, port_id, info);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void convert_result(void *data, int seq, int res, uint32_t type, const void *result)
|
static void convert_result(void *data, int seq, int res, uint32_t type, const void *result)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue