mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
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
This commit is contained in:
parent
d20ee7e7f2
commit
5d2d9e5700
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue