[pulseaudio-commits] src/pulsecore

Tanu Kaskinen tanuk at kemper.freedesktop.org
Fri Dec 20 06:18:39 PST 2013


 src/pulsecore/sink-input.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5d2d9e57006c6509ef6d173b89502685ff429449
Author: Tanu Kaskinen <tanu.kaskinen at linux.intel.com>
Date:   Fri Dec 20 16:10:53 2013 +0200

    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

diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c
index 8052724..e45ecf1 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);



More information about the pulseaudio-commits mailing list