diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-08-15 14:37:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-08-15 14:37:54 +0200 |
commit | 63402b392be251ca5519cc668c3bf698aa33aed0 (patch) | |
tree | 1406ec53d04742cb3a0e0bbf130f7476ae1bb3ab /src | |
parent | 512c24c65abf42d2546491607da4fed286c79e1f (diff) |
apply volumes properly more than once in a row
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/module-stream-restore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/module-stream-restore.c b/src/modules/module-stream-restore.c index e0683e72..5b9922ec 100644 --- a/src/modules/module-stream-restore.c +++ b/src/modules/module-stream-restore.c @@ -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) { |