1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

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:
Brian Gianforcaro 2022-03-18 00:28:16 -07:00 committed by Brian Gianforcaro
parent ddd75db007
commit f9bed65130

View file

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