FifoRecorder: In-class initialize member variables where applicable

This commit is contained in:
Lioncash 2017-03-21 15:34:04 -04:00
parent eda27ee397
commit 4e5e7cff0a
2 changed files with 10 additions and 14 deletions

View File

@ -17,11 +17,7 @@
static FifoRecorder instance;
static std::recursive_mutex sMutex;
FifoRecorder::FifoRecorder()
: m_IsRecording(false), m_WasRecording(false), m_RequestedRecordingEnd(false),
m_RecordFramesRemaining(0), m_FinishedCb(nullptr), m_File(nullptr), m_SkipNextData(true),
m_SkipFutureData(true), m_FrameEnded(false), m_Ram(Memory::RAM_SIZE),
m_ExRam(Memory::EXRAM_SIZE)
FifoRecorder::FifoRecorder() : m_Ram(Memory::RAM_SIZE), m_ExRam(Memory::EXRAM_SIZE)
{
}

View File

@ -47,20 +47,20 @@ private:
// Accessed from both GUI and video threads
// True if video thread should send data
volatile bool m_IsRecording;
volatile bool m_IsRecording = false;
// True if m_IsRecording was true during last frame
volatile bool m_WasRecording;
volatile bool m_RequestedRecordingEnd;
volatile s32 m_RecordFramesRemaining;
volatile CallbackFunc m_FinishedCb;
volatile bool m_WasRecording = false;
volatile bool m_RequestedRecordingEnd = false;
volatile s32 m_RecordFramesRemaining = 0;
volatile CallbackFunc m_FinishedCb = nullptr;
FifoDataFile* volatile m_File;
FifoDataFile* volatile m_File = nullptr;
// Accessed only from video thread
bool m_SkipNextData;
bool m_SkipFutureData;
bool m_FrameEnded;
bool m_SkipNextData = true;
bool m_SkipFutureData = true;
bool m_FrameEnded = false;
FifoFrameInfo m_CurrentFrame;
std::vector<u8> m_FifoData;
std::vector<u8> m_Ram;