From 4b02064e9f260443c38ba6e145d64715b9031e27 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 15 Sep 2010 11:19:59 +0000 Subject: 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 --- src/plugins/General/mpris/playerobject.cpp | 10 +++++----- src/plugins/General/mpris/tracklistobject.cpp | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-13-gbd6f