audioadapter: we don't need to clear the dynamic flag

This commit is contained in:
Wim Taymans 2019-07-11 11:15:47 +02:00
parent a9bce3803a
commit afd6e578a8

View file

@ -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)