Fix some warnings on GCC

This commit is contained in:
Cameron Gutman
2018-06-28 03:13:38 -07:00
parent e5ef1bcfc5
commit 3d7c8d4bfb
2 changed files with 2 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ Session::Session(NvComputer* computer, NvApp& app)
m_StreamConfig.bitrate = prefs.bitrateKbps;
m_StreamConfig.packetSize = 1024;
m_StreamConfig.hevcBitratePercentageMultiplier = 75;
for (int i = 0; i < sizeof(m_StreamConfig.remoteInputAesKey); i++) {
for (unsigned int i = 0; i < sizeof(m_StreamConfig.remoteInputAesKey); i++) {
m_StreamConfig.remoteInputAesKey[i] =
(char)(QRandomGenerator::global()->generate() % 256);
}

View File

@@ -53,9 +53,9 @@ private:
void sdlAudioDecodeAndPlaySample(char* sampleData, int sampleLength);
STREAM_CONFIGURATION m_StreamConfig;
QMessageBox m_ProgressBox;
NvComputer* m_Computer;
NvApp m_App;
QMessageBox m_ProgressBox;
static SDL_AudioDeviceID s_AudioDevice;
static OpusMSDecoder* s_OpusDecoder;