aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/CommandLineOptions/SeekOption/seekoption.cpp')
-rw-r--r--src/plugins/CommandLineOptions/SeekOption/seekoption.cpp4
1 files changed, 2 insertions, 2 deletions
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();