Fix 'potentially uninitialized variable' warnings

This commit is contained in:
jp9000 2014-06-25 02:03:00 -07:00
parent 3e5d486d24
commit 2e6063ce79
2 changed files with 2 additions and 1 deletions

View File

@ -1478,6 +1478,7 @@ void OBSBasic::StreamingStop(int code)
errorMessage = Str("Output.ConnectFail.InvalidStream"); errorMessage = Str("Output.ConnectFail.InvalidStream");
break; break;
default:
case OBS_OUTPUT_ERROR: case OBS_OUTPUT_ERROR:
errorMessage = Str("Output.ConnectFail.Error"); errorMessage = Str("Output.ConnectFail.Error");
break; break;

View File

@ -563,7 +563,7 @@ void OBSBasicSettings::SaveVideoSettings()
QString baseResolution = ui->baseResolution->currentText(); QString baseResolution = ui->baseResolution->currentText();
QString outputResolution = ui->outputResolution->currentText(); QString outputResolution = ui->outputResolution->currentText();
int fpsType = ui->fpsType->currentIndex(); int fpsType = ui->fpsType->currentIndex();
uint32_t cx, cy; uint32_t cx = 0, cy = 0;
/* ------------------- */ /* ------------------- */