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
1 changed files with 1 additions and 3 deletions

View File

@ -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