From b5fde6dfa55676560ee8805e8e00bc188a5ad928 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 15 Aug 2012 17:49:23 +0200 Subject: decoder_control: add function _is_current_song() Replaces _current_song(). --- src/player_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/player_thread.c') 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 */ -- cgit v1.2.3