aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/player.c b/src/player.c
index 8803cdfd9..8687e5409 100644
--- a/src/player.c
+++ b/src/player.c
@@ -19,7 +19,6 @@
#include "player.h"
#include "player_thread.h"
#include "path.h"
-#include "command.h"
#include "ack.h"
#include "os_compat.h"
#include "main_notify.h"
@@ -197,15 +196,12 @@ void playerQueueUnlock(void)
assert(pc.queueLockState == PLAYER_QUEUE_UNLOCKED);
}
-int playerSeek(int fd, Song * song, float seek_time)
+int playerSeek(Song * song, float seek_time)
{
assert(song != NULL);
- if (pc.state == PLAYER_STATE_STOP) {
- commandError(fd, ACK_ERROR_PLAYER_SYNC,
- "player not currently playing");
+ if (pc.state == PLAYER_STATE_STOP)
return -1;
- }
if (pc.next_song != song)
set_current_song(song);