Commit 76d77af0 authored by Max Kellermann's avatar Max Kellermann

player/Thread: use std::lock_guard once more

parent ea8ab4dd
......@@ -1130,7 +1130,7 @@ Player::Run() noexcept
song.reset();
}
pc.Lock();
const std::lock_guard<Mutex> lock(pc.mutex);
pc.ClearTaggedSong();
......@@ -1140,8 +1140,6 @@ Player::Run() noexcept
}
pc.state = PlayerState::STOP;
pc.Unlock();
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment