diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-02-05 04:05:47 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-02-05 04:05:47 +0100 |
commit | 63e234335fd3362328db34cfc59d27e9899db82b (patch) | |
tree | ead9b7a82b8a938a7816e3ef173a152e72b88860 | |
parent | f6ffd2dd5a019e6ea5b2cbd1d19c3a4417043e59 (diff) |
handle default volume initialization properly
-rw-r--r-- | src/pulsecore/sink-input.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c index 37d40eb9..fa2a3834 100644 --- a/src/pulsecore/sink-input.c +++ b/src/pulsecore/sink-input.c @@ -179,8 +179,11 @@ int pa_sink_input_new( if (data->sink->flags & PA_SINK_FLAT_VOLUME) { data->volume = *pa_sink_get_volume(data->sink, FALSE); pa_cvolume_remap(&data->volume, &data->sink->channel_map, &data->channel_map); - } else + data->volume_is_absolute = TRUE; + } else { pa_cvolume_reset(&data->volume, data->sample_spec.channels); + data->volume_is_absolute = FALSE; + } data->save_volume = FALSE; } |