aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_control.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/player_control.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/player_control.c b/src/player_control.c
index df4f4bf61..2754c3432 100644
--- a/src/player_control.c
+++ b/src/player_control.c
@@ -220,13 +220,13 @@ queueSong(struct song *song)
player_command(PLAYER_COMMAND_QUEUE);
}
-int
-playerSeek(struct song *song, float seek_time)
+bool
+pc_seek(struct song *song, float seek_time)
{
assert(song != NULL);
if (pc.state == PLAYER_STATE_STOP)
- return -1;
+ return false;
pc.next_song = song;
@@ -237,7 +237,7 @@ playerSeek(struct song *song, float seek_time)
idle_add(IDLE_PLAYER);
}
- return 0;
+ return true;
}
float getPlayerCrossFade(void)