player/Thread: merge four mutex locks in SeekDecoder()

This commit is contained in:
Max Kellermann
2017-12-22 01:04:44 +01:00
parent 0772e571b7
commit 5bd1fbb0d6
2 changed files with 5 additions and 15 deletions

View File

@@ -304,12 +304,6 @@ struct DecoderControl {
gcc_pure
bool IsCurrentSong(const DetachedSong &_song) const noexcept;
gcc_pure
bool LockIsCurrentSong(const DetachedSong &_song) const noexcept {
const std::lock_guard<Mutex> protect(mutex);
return IsCurrentSong(_song);
}
private:
/**
* Wait for the command to be finished by the decoder thread.