player/Thread: use std::lock_guard once more

This commit is contained in:
Max Kellermann
2017-12-22 00:47:36 +01:00
parent ea8ab4ddf2
commit 76d77af0f0

View File

@@ -1130,7 +1130,7 @@ Player::Run() noexcept
song.reset(); song.reset();
} }
pc.Lock(); const std::lock_guard<Mutex> lock(pc.mutex);
pc.ClearTaggedSong(); pc.ClearTaggedSong();
@@ -1140,8 +1140,6 @@ Player::Run() noexcept
} }
pc.state = PlayerState::STOP; pc.state = PlayerState::STOP;
pc.Unlock();
} }
static void static void