mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
audioconvert: remove redundant set_volume calls
This commit is contained in:
parent
0c47ab76a7
commit
71ec8650ba
1 changed files with 1 additions and 4 deletions
|
|
@ -839,10 +839,6 @@ static int parse_prop_params(struct impl *this, struct spa_pod *params)
|
||||||
spa_log_info(this->log, "key:'%s' val:'%s'", name, value);
|
spa_log_info(this->log, "key:'%s' val:'%s'", name, value);
|
||||||
changed += audioconvert_set_param(this, name, value);
|
changed += audioconvert_set_param(this, name, value);
|
||||||
}
|
}
|
||||||
if (changed) {
|
|
||||||
channelmix_init(&this->mix);
|
|
||||||
set_volume(this);
|
|
||||||
}
|
|
||||||
return changed;
|
return changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -924,6 +920,7 @@ static int apply_props(struct impl *this, const struct spa_pod *param)
|
||||||
else if (have_channel_volume)
|
else if (have_channel_volume)
|
||||||
p->have_soft_volume = false;
|
p->have_soft_volume = false;
|
||||||
|
|
||||||
|
channelmix_init(&this->mix);
|
||||||
set_volume(this);
|
set_volume(this);
|
||||||
}
|
}
|
||||||
return changed;
|
return changed;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue