From 31e7aa9b7080f2f4ed58edf8db74f529186e02c1 Mon Sep 17 00:00:00 2001 From: Bruno Morais Date: Thu, 5 Sep 2019 20:39:17 -0400 Subject: [PATCH] get correct duration --- src/plugins/mpris/mpris.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/mpris/mpris.cpp b/src/plugins/mpris/mpris.cpp index 8e4e342c2..11faab47e 100644 --- a/src/plugins/mpris/mpris.cpp +++ b/src/plugins/mpris/mpris.cpp @@ -308,7 +308,7 @@ static class MPRISRemote : public IPlaybackRemote { metadata.album = GetMetadataString(curTrack, track::Album); metadata.discNumber = curTrack->GetInt32(track::DiscNum); metadata.trackNumber = curTrack->GetInt32(track::TrackNum); - metadata.length = curTrack->GetInt64(track::Duration); + metadata.length = curTrack->GetInt64(track::Duration)*1000*1000; metadata.available = true; } }