Add bizarrely named "mtime" to MPRIS.

Fixes issue #893
This commit is contained in:
John Maguire 2010-10-19 11:20:50 +00:00
parent acd9b2e136
commit 29d1e9e7cb
2 changed files with 2 additions and 1 deletions

View File

@ -459,6 +459,7 @@ QVariantMap Player::GetMetadata(const PlaylistItem& item) const {
AddMetadata("samplerate", song.samplerate(), &ret);
AddMetadata("bpm", song.bpm(), &ret);
AddMetadata("composer", song.composer(), &ret);
AddMetadata("mtime", song.length() * 1000, &ret);
return ret;
}

View File

@ -267,7 +267,7 @@ class Song {
int skipcount_;
int lastplayed_;
int length_;
int length_; // Seconds.
int bitrate_;
int samplerate_;