player/Thread: use std::lock_guard once more
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user