diff options
author | Frans Englich <frans.englich@nokia.com> | 2009-10-07 12:10:26 (GMT) |
---|---|---|
committer | Frans Englich <frans.englich@nokia.com> | 2009-10-07 12:28:36 (GMT) |
commit | 16e21cb0beb0e5f5189048b95d1cb74ae0c0702a (patch) | |
tree | dc673cd19fa536fab55f45ff369e0d92b94c4d0e /src/3rdparty/phonon/mmf/audiooutput.h | |
parent | d17a315a082a8cb5d7f3f5ae47dabbe721982e2c (diff) | |
download | Qt-16e21cb0beb0e5f5189048b95d1cb74ae0c0702a.zip Qt-16e21cb0beb0e5f5189048b95d1cb74ae0c0702a.tar.gz Qt-16e21cb0beb0e5f5189048b95d1cb74ae0c0702a.tar.bz2 |
mediaplayer: crash in settings dialog.
The MediaPlayer requires that an output device is available.
Task-number: QTBUG-4755
Reviewed-by: Gareth Stockwell
Diffstat (limited to 'src/3rdparty/phonon/mmf/audiooutput.h')
-rw-r--r-- | src/3rdparty/phonon/mmf/audiooutput.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/3rdparty/phonon/mmf/audiooutput.h b/src/3rdparty/phonon/mmf/audiooutput.h index 0a962a9..d0ba086 100644 --- a/src/3rdparty/phonon/mmf/audiooutput.h +++ b/src/3rdparty/phonon/mmf/audiooutput.h @@ -19,6 +19,8 @@ along with this library. If not, see <http://www.gnu.org/licenses/>. #ifndef PHONON_MMF_AUDIOOUTPUT_H #define PHONON_MMF_AUDIOOUTPUT_H +#include <QHash> + #include "mmf_medianode.h" #include <phonon/audiooutputinterface.h> @@ -65,10 +67,12 @@ public: */ virtual bool setOutputDevice(int); - /** - * Has no effect. - */ - virtual bool setOutputDevice(const Phonon::AudioOutputDevice &); + static QHash<QByteArray, QVariant> audioOutputDescription(int index); + + enum Constants + { + AudioOutputDeviceID = 0 + }; protected: virtual bool activateOnMediaObject(MediaObject *mo); @@ -78,6 +82,7 @@ Q_SIGNALS: void audioDeviceFailed(); private: + void setVolumeObserver(VolumeObserver* observer); qreal m_volume; |