summaryrefslogtreecommitdiffstats
path: root/mediaplayer
diff options
context:
space:
mode:
Diffstat (limited to 'mediaplayer')
-rw-r--r--mediaplayer/mediaplayer.cpp4
-rw-r--r--mediaplayer/mediaplayer.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/mediaplayer/mediaplayer.cpp b/mediaplayer/mediaplayer.cpp
index 2a24464..0ef7d34 100644
--- a/mediaplayer/mediaplayer.cpp
+++ b/mediaplayer/mediaplayer.cpp
@@ -156,10 +156,10 @@ void Mediaplayer::volume(int volume)
control("volume", parameter);
}
-void Mediaplayer::loop(int state)
+void Mediaplayer::loop(QString state)
{
QJsonObject parameter;
- parameter.insert("state", state ? "true" : "false");
+ parameter.insert("state", state);
control("loop", parameter);
}
diff --git a/mediaplayer/mediaplayer.h b/mediaplayer/mediaplayer.h
index baefb01..fe49be4 100644
--- a/mediaplayer/mediaplayer.h
+++ b/mediaplayer/mediaplayer.h
@@ -87,7 +87,7 @@ class Mediaplayer : public QObject
Q_INVOKABLE void rewind(int);
Q_INVOKABLE void picktrack(int);
Q_INVOKABLE void volume(int);
- Q_INVOKABLE void loop(int);
+ Q_INVOKABLE void loop(QString);
void updatePlaylist(QVariantMap playlist);