diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-10-28 23:50:42 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-10-28 23:50:42 +0100 |
commit | 546bcf3f2f9711f0d08c21c3b775994844e7e2a2 (patch) | |
tree | a8c07ceb66da5e7249d8322748609b552f7615e2 /src/pulsecore/protocol-native.c | |
parent | 2501687579e359d5032a4d165b2ffc8f5b1b8ba6 (diff) |
protocol-native: if a client set volume/mute/device store it since it is user input
Diffstat (limited to 'src/pulsecore/protocol-native.c')
-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; |