mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 17:16:04 +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:
parent
ddd75db007
commit
f9bed65130
Notes:
sideshowbarker
2024-07-17 17:13:19 +09:00
Author: https://github.com/bgianfo
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:
|
private:
|
||||||
Playlist m_playlist;
|
Playlist m_playlist;
|
||||||
PlayState m_play_state;
|
PlayState m_play_state { PlayState::NoFileLoaded };
|
||||||
LoopMode m_loop_mode;
|
LoopMode m_loop_mode { LoopMode::None };
|
||||||
ShuffleMode m_shuffle_mode;
|
ShuffleMode m_shuffle_mode { ShuffleMode::None };
|
||||||
|
|
||||||
Audio::ConnectionFromClient& m_audio_client_connection;
|
Audio::ConnectionFromClient& m_audio_client_connection;
|
||||||
PlaybackManager m_playback_manager;
|
PlaybackManager m_playback_manager;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue