aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/mpris
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General/mpris')
-rw-r--r--src/plugins/General/mpris/mpris2/player2object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/General/mpris/mpris2/player2object.cpp b/src/plugins/General/mpris/mpris2/player2object.cpp
index 21d51c633..2793b5978 100644
--- a/src/plugins/General/mpris/mpris2/player2object.cpp
+++ b/src/plugins/General/mpris/mpris2/player2object.cpp
@@ -261,7 +261,7 @@ void Player2Object::Previous()
void Player2Object::Seek(qlonglong Offset)
{
- m_core->seek(qMin((qint64)0, m_core->elapsed() + Offset/1000));
+ m_core->seek(qMax(qint64(0), m_core->elapsed() + Offset/1000));
}
void Player2Object::SetPosition(const QDBusObjectPath &TrackId, qlonglong Position)
{