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/CommandLineOptions/SeekOption/seekoption.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/CommandLineOptions/SeekOption/seekoption.cpp') diff --git a/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp b/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp index 02e971940..0b0a0b0b2 100644 --- a/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp +++ b/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp @@ -43,7 +43,7 @@ const QStringList SeekOption::helpString() const QString SeekOption::executeCommand(const QString &opt_str, const QStringList &args) { SoundCore *core = SoundCore::instance(); - if(core->state() != Qmmp::Playing && core->totalTime()) + if(core->state() != Qmmp::Playing && core->duration()) return QString(); if(args.isEmpty()) return QString(); @@ -68,7 +68,7 @@ QString SeekOption::executeCommand(const QString &opt_str, const QStringList &ar seek_pos = elapsed - seek_pos; qDebug("SeekOption: position = %d", seek_pos); - if(seek_pos >= 0 && seek_pos < core->totalTime()) + if(seek_pos >= 0 && seek_pos < core->duration()) core->seek(seek_pos * 1000); else return QString(); -- cgit v1.2.3-13-gbd6f