From c2e4fe983da690907316dac9cd1838fc713dec1b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 9 Aug 2012 21:20:24 +0200 Subject: Song: add function song_equals() decoder_is_current_song() now recognizes different instances of the same physical song. --- src/decoder_control.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/decoder_control.c') diff --git a/src/decoder_control.c b/src/decoder_control.c index 2a2d8ac66..8bf21365c 100644 --- a/src/decoder_control.c +++ b/src/decoder_control.c @@ -20,6 +20,7 @@ #include "config.h" #include "decoder_control.h" #include "pipe.h" +#include "song.h" #include @@ -111,7 +112,7 @@ decoder_is_current_song(const struct decoder_control *dc, case DECODE_STATE_START: case DECODE_STATE_DECODE: - return dc->song == song; + return song_equals(dc->song, song); } assert(false); -- cgit v1.2.3