aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_control.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/playlist_control.c')
-rw-r--r--src/playlist_control.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/playlist_control.c b/src/playlist_control.c
index f1702149a..f96db7f0e 100644
--- a/src/playlist_control.c
+++ b/src/playlist_control.c
@@ -218,7 +218,7 @@ seekSongInPlaylist(struct playlist *playlist, unsigned song, float seek_time)
{
const struct song *queued;
unsigned i;
- int ret;
+ bool success;
if (!queue_valid_position(&playlist->queue, song))
return PLAYLIST_RESULT_BAD_RANGE;
@@ -242,8 +242,8 @@ seekSongInPlaylist(struct playlist *playlist, unsigned song, float seek_time)
queued = NULL;
}
- ret = playerSeek(queue_get_order(&playlist->queue, i), seek_time);
- if (ret < 0) {
+ success = pc_seek(queue_get_order(&playlist->queue, i), seek_time);
+ if (!success) {
playlist_update_queued_song(playlist, queued);
return PLAYLIST_RESULT_NOT_PLAYING;