diff options
author | Max Kellermann <max@duempel.org> | 2013-10-21 23:19:15 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-21 23:19:15 +0200 |
commit | 20cba9e89f80d788a1cc65473865f52de94ea451 (patch) | |
tree | 7e9d96754b4f59ea2235c1455e18ba83cd31411a /src/DecoderControl.cxx | |
parent | f6d67ac260ad12a6465378d93d03d98fea857ec8 (diff) | |
download | mpd-20cba9e89f80d788a1cc65473865f52de94ea451.tar.gz mpd-20cba9e89f80d788a1cc65473865f52de94ea451.tar.xz mpd-20cba9e89f80d788a1cc65473865f52de94ea451.zip |
Song: pass reference to song_equals()
Diffstat (limited to 'src/DecoderControl.cxx')
-rw-r--r-- | src/DecoderControl.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/DecoderControl.cxx b/src/DecoderControl.cxx index 26751855d..ff6d1ad2d 100644 --- a/src/DecoderControl.cxx +++ b/src/DecoderControl.cxx @@ -47,10 +47,8 @@ decoder_control::~decoder_control() } bool -decoder_control::IsCurrentSong(const Song *_song) const +decoder_control::IsCurrentSong(const Song &_song) const { - assert(_song != nullptr); - switch (state) { case DecoderState::STOP: case DecoderState::ERROR: @@ -58,7 +56,7 @@ decoder_control::IsCurrentSong(const Song *_song) const case DecoderState::START: case DecoderState::DECODE: - return song_equals(song, _song); + return SongEquals(*song, _song); } assert(false); |