QAudioOutput: Don't guess media role if one has not been provided in setCategory.
authorRobin Burchell <robin.burchell@jollamobile.com>
Thu, 16 Jan 2014 14:28:06 +0000 (15:28 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 7 Feb 2014 12:23:27 +0000 (13:23 +0100)
commit87b8b4489a96983a7e98e74ee656e6225ff982f3
tree5aab3a652cfe575ff02fdd90dff6eeb0d4451147
parent1e23440457d64e6dec53b6b465d783673b6e9956
QAudioOutput: Don't guess media role if one has not been provided in setCategory.

Trying to heuristically guess this kind of thing is almost always a bad idea.
Expect the creator of the output to explicitly tell us the category instead
of guessing.

This fixes QAudioOutput not respecting system volume on Sailfish.

Change-Id: If1d05192f513eb54fdfbd1df217286f329b2bfe8
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/plugins/pulseaudio/qaudiooutput_pulse.cpp