From fb04803cc2865030f8913f2e85221ff25b93ecf8 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 15 Apr 2018 08:15:30 +0000 Subject: some api changes git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7905 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/mpris/mpris2/player2object.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/General/mpris/mpris2/player2object.cpp') diff --git a/src/plugins/General/mpris/mpris2/player2object.cpp b/src/plugins/General/mpris/mpris2/player2object.cpp index ccdb8c70a..cee1aebfe 100644 --- a/src/plugins/General/mpris/mpris2/player2object.cpp +++ b/src/plugins/General/mpris/mpris2/player2object.cpp @@ -83,7 +83,7 @@ bool Player2Object::canPlay() const bool Player2Object::canSeek() const { - return m_core->totalTime() > 0; + return m_core->duration() > 0; } QString Player2Object::loopStatus() const @@ -126,7 +126,7 @@ QVariantMap Player2Object::metadata() const if(!track || m_core->metaData(Qmmp::URL).isEmpty()) return QVariantMap(); QVariantMap map; - map["mpris:length"] = qMax(m_core->totalTime() * 1000 , qint64(0)); + map["mpris:length"] = qMax(m_core->duration() * 1000 , qint64(0)); if(!MetaDataManager::instance()->getCoverPath(m_core->metaData(Qmmp::URL)).isEmpty()) { map["mpris:artUrl"] = QUrl::fromLocalFile( -- cgit v1.2.3-13-gbd6f