player/Thread: use std::lock_guard once more
This commit is contained in:
parent
ea8ab4ddf2
commit
76d77af0f0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue