aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-15 17:49:23 +0200
committerMax Kellermann <max@duempel.org>2012-08-15 17:58:15 +0200
commitb5fde6dfa55676560ee8805e8e00bc188a5ad928 (patch)
tree264ab852df3a45a5b03a3fff9b7e99fd364816ec /src/player_thread.c
parent784d666a8e0c4afae45f18b68cdac7734962520c (diff)
downloadmpd-b5fde6dfa55676560ee8805e8e00bc188a5ad928.tar.gz
mpd-b5fde6dfa55676560ee8805e8e00bc188a5ad928.tar.xz
mpd-b5fde6dfa55676560ee8805e8e00bc188a5ad928.zip
decoder_control: add function _is_current_song()
Replaces _current_song().
Diffstat (limited to 'src/player_thread.c')
-rw-r--r--src/player_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index 486a8c96e..15fc9d235 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -458,7 +458,7 @@ static bool player_seek_decoder(struct player *player)
assert(pc->next_song != NULL);
- if (decoder_current_song(dc) != song) {
+ if (!decoder_lock_is_current_song(dc, song)) {
/* the decoder is already decoding the "next" song -
stop it and start the previous song again */