diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-12-17 13:09:55 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-12-17 13:09:55 +0000 |
| commit | fcc385fc5c74fb0af9483fefa5be64b95d299189 (patch) | |
| tree | c11c51550f2c613c5cdf68e060029716f7b253e7 /src/plugins/General/mpris | |
| parent | fbf6df0e267774e4cfa32678176869095fa28986 (diff) | |
| download | qmmp-fcc385fc5c74fb0af9483fefa5be64b95d299189.tar.gz qmmp-fcc385fc5c74fb0af9483fefa5be64b95d299189.tar.bz2 qmmp-fcc385fc5c74fb0af9483fefa5be64b95d299189.zip | |
using standard dialog buttons
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@690 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/mpris')
| -rw-r--r-- | src/plugins/General/mpris/playerobject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/General/mpris/playerobject.cpp b/src/plugins/General/mpris/playerobject.cpp index 8175df301..4e3cc1a10 100644 --- a/src/plugins/General/mpris/playerobject.cpp +++ b/src/plugins/General/mpris/playerobject.cpp @@ -147,12 +147,13 @@ int PlayerObject::GetCaps() caps |= CAN_SEEK; caps |= CAN_GO_NEXT; caps |= CAN_GO_PREV; + caps |= CAN_PROVIDE_METADATA; return caps; } void PlayerObject::VolumeSet(int volume) { - int balance = (m_core->rightVolume() - m_core->leftVolume()) * 100/VolumeGet(); + int balance = (VolumeGet() > 0) ? (m_core->rightVolume() - m_core->leftVolume()) * 100/VolumeGet() : 0; m_core->setVolume(volume - qMax(balance,0)*volume/100, volume + qMin(balance,0)*volume/100); } |
