Only call pa_cvolme set on stream creation if volume explicitly set.
authorRobin Burchell <robin.burchell@jollamobile.com>
Tue, 22 Jul 2014 16:24:22 +0000 (18:24 +0200)
committerRobin Burchell <robin+qt@viroteck.net>
Mon, 4 Aug 2014 18:38:14 +0000 (20:38 +0200)
commit5f33d7bea3fd3dd441aff499576826a02e8e5be2
tree4b8e3f346493c8a27b40ed79620e2967eaba20ef
parent1c5ea9561ac2686fb01ebd87b2d2b990a27dddad
Only call pa_cvolme set on stream creation if volume explicitly set.

Streams without a custom volume set use suitable volume selected
by the PulseAudio server. This is usually the correct choice, since then
stream-restore module can apply old volume to the stream. Also with
Sailfish explicitly setting the volume to streams breaks system volume.

Change-Id: I75f5bf4e7aaafb4bd55510f5ac4ddf03767d494b
Done-with: Juho Hämäläinen <juho.hamalainen@tieto.com>
Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
src/plugins/pulseaudio/qaudiooutput_pulse.cpp
src/plugins/pulseaudio/qaudiooutput_pulse.h