summaryrefslogtreecommitdiff
path: root/src/DecoderControl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/DecoderControl.cxx')
-rw-r--r--src/DecoderControl.cxx6
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);