diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-10-28 23:50:42 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-11-11 05:14:04 +0100 |
commit | 732b468d66a6341d3f1744548ad3ca7e90d1b06d (patch) | |
tree | 4ce810d9de23767effae81c29d3ae4c96a9a5a3d | |
parent | 3dcdab6e8d84c0b8941051c9b95d7e73a65ce15c (diff) |
protocol-native: if a client set volume/mute/device store it since it is user input
-rw-r--r-- | src/pulsecore/protocol-native.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c index b7471c0a..010420ef 100644 --- a/src/pulsecore/protocol-native.c +++ b/src/pulsecore/protocol-native.c @@ -1044,15 +1044,21 @@ static playback_stream* playback_stream_new( data.driver = __FILE__; data.module = c->options->module; data.client = c->client; - data.sink = sink; + if (sink) { + data.sink = sink; + data.save_sink = TRUE; + } pa_sink_input_new_data_set_sample_spec(&data, ss); pa_sink_input_new_data_set_channel_map(&data, map); if (volume) { pa_sink_input_new_data_set_volume(&data, volume); data.volume_is_absolute = TRUE; + data.save_volume = TRUE; } - if (muted_set) + if (muted_set) { pa_sink_input_new_data_set_muted(&data, muted); + data.save_muted = TRUE; + } data.sync_base = ssync ? ssync->sink_input : NULL; data.flags = flags; |