SoundPlayer: Fix read of uninitialized member variables on startup
I found these by running SoundPlayer under UserspaceEmulator. After boot we attempt to read from these values before they are initialized.
This commit is contained in:
parent
ddd75db007
commit
f9bed65130
Notes:
sideshowbarker
2024-07-17 17:13:19 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/f9bed65130 Pull-request: https://github.com/SerenityOS/serenity/pull/13104
1 changed files with 3 additions and 3 deletions
|
@ -86,9 +86,9 @@ protected:
|
|||
|
||||
private:
|
||||
Playlist m_playlist;
|
||||
PlayState m_play_state;
|
||||
LoopMode m_loop_mode;
|
||||
ShuffleMode m_shuffle_mode;
|
||||
PlayState m_play_state { PlayState::NoFileLoaded };
|
||||
LoopMode m_loop_mode { LoopMode::None };
|
||||
ShuffleMode m_shuffle_mode { ShuffleMode::None };
|
||||
|
||||
Audio::ConnectionFromClient& m_audio_client_connection;
|
||||
PlaybackManager m_playback_manager;
|
||||
|
|
Loading…
Add table
Reference in a new issue