mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
apply volumes properly more than once in a row
This commit is contained in:
parent
512c24c65a
commit
63402b392b
1 changed files with 2 additions and 1 deletions
|
|
@ -418,8 +418,9 @@ static void apply_entry(struct userdata *u, const char *name, struct entry *e) {
|
|||
}
|
||||
|
||||
if (u->restore_volume) {
|
||||
pa_cvolume v = e->volume;
|
||||
pa_log_info("Restoring volume for sink input %s.", name);
|
||||
pa_sink_input_set_volume(si, pa_cvolume_remap(&e->volume, &e->channel_map, &si->channel_map));
|
||||
pa_sink_input_set_volume(si, pa_cvolume_remap(&v, &e->channel_map, &si->channel_map));
|
||||
}
|
||||
|
||||
if (u->restore_muted) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue