diff options
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) { |