diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-09-15 11:19:59 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-09-15 11:19:59 +0000 |
| commit | 4b02064e9f260443c38ba6e145d64715b9031e27 (patch) | |
| tree | 4953b55c7ec42e7d2a44b5e71d111d4d748932cb /src/plugins | |
| parent | 7b7c016ad80bcb09ff64f0b97b7acd30ca5f9cbf (diff) | |
| download | qmmp-4b02064e9f260443c38ba6e145d64715b9031e27.tar.gz qmmp-4b02064e9f260443c38ba6e145d64715b9031e27.tar.bz2 qmmp-4b02064e9f260443c38ba6e145d64715b9031e27.zip | |
fixed problem with pidgin music tracker
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1886 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins')
| -rw-r--r-- | src/plugins/General/mpris/playerobject.cpp | 10 | ||||
| -rw-r--r-- | src/plugins/General/mpris/tracklistobject.cpp | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/General/mpris/playerobject.cpp b/src/plugins/General/mpris/playerobject.cpp index d7166e964..e5d4af632 100644 --- a/src/plugins/General/mpris/playerobject.cpp +++ b/src/plugins/General/mpris/playerobject.cpp @@ -136,13 +136,13 @@ QVariantMap PlayerObject::GetMetadata() map.insert("artist", m_core->metaData(Qmmp::ARTIST)); map.insert("album", m_core->metaData(Qmmp::ALBUM)); map.insert("tracknumber", m_core->metaData(Qmmp::TRACK)); - map.insert("time", m_core->totalTime()/1000); - map.insert("mtime", m_core->totalTime()); + map.insert("time", (quint32)m_core->totalTime()/1000); + map.insert("mtime", (quint32)m_core->totalTime()); map.insert("genre", m_core->metaData(Qmmp::GENRE)); map.insert("comment", m_core->metaData(Qmmp::COMMENT)); - map.insert("audio-bitrate", m_core->bitrate()); - map.insert("audio-samplerate", m_core->frequency()); - map.insert("year", m_core->metaData(Qmmp::YEAR)); + map.insert("audio-bitrate", (quint32)m_core->bitrate()); + map.insert("audio-samplerate", (quint32)m_core->frequency()); + map.insert("year", m_core->metaData(Qmmp::YEAR).toUInt()); return map; } diff --git a/src/plugins/General/mpris/tracklistobject.cpp b/src/plugins/General/mpris/tracklistobject.cpp index 49a25b5da..a7d069c29 100644 --- a/src/plugins/General/mpris/tracklistobject.cpp +++ b/src/plugins/General/mpris/tracklistobject.cpp @@ -90,11 +90,11 @@ QVariantMap TrackListObject::GetMetadata(int in0) map.insert("artist", item->artist()); map.insert("album", item->album()); map.insert("tracknumber", item->track()); - map.insert("time", item->length()); - map.insert("mtime", item->length() * 1000); + map.insert("time", (quint32)item->length()); + map.insert("mtime", (quint32)item->length() * 1000); map.insert("genre", item->genre()); map.insert("comment", item->comment()); - map.insert("year", item->year()); + map.insert("year", item->year().toUInt()); } return map; } |
