summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>2013-12-20 16:10:53 +0200
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>2013-12-20 16:10:53 +0200
commit5d2d9e57006c6509ef6d173b89502685ff429449 (patch)
tree018a7f1b351d788871fb8bcb07e6f88f5267278b
parentd20ee7e7f21a9deed61ac5adb46cc64921e01796 (diff)
sink-input: Fix volume_factor_sink initialization
Source outputs handle volume_factor_source in a bit different way, which is why this bug doesn't affect source outputs. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=72879
-rw-r--r--src/pulsecore/sink-input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c
index 8052724fa..e45ecf186 100644
--- a/src/pulsecore/sink-input.c
+++ b/src/pulsecore/sink-input.c
@@ -519,7 +519,7 @@ int pa_sink_input_new(
i->volume_factor_sink_items = data->volume_factor_sink_items;
data->volume_factor_sink_items = NULL;
- volume_factor_from_hashmap(&i->volume_factor_sink, i->volume_factor_sink_items, i->sample_spec.channels);
+ volume_factor_from_hashmap(&i->volume_factor_sink, i->volume_factor_sink_items, i->sink->sample_spec.channels);
i->real_ratio = i->reference_ratio = data->volume;
pa_cvolume_reset(&i->soft_volume, i->sample_spec.channels);