From 5ba8333da3006c23b0ff7e100a93e841ac912dc2 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 18 Sep 2015 22:20:55 -0700 Subject: [PATCH] UI: Add more potential recording errors --- obs/data/locale/en-US.ini | 4 ++++ obs/window-basic-main.cpp | 13 ++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/obs/data/locale/en-US.ini b/obs/data/locale/en-US.ini index 3045459d6..483ed1c1c 100644 --- a/obs/data/locale/en-US.ini +++ b/obs/data/locale/en-US.ini @@ -74,6 +74,10 @@ Output.ConnectFail.Disconnected="Disconnected from server." # output recording-related messages Output.RecordFail.Title="Failed to start recording" Output.RecordFail.Unsupported="The output format is either unsupported or does not support more than one audio track. Please check your settings and try again." +Output.RecordNoSpace.Title="Insufficient disk space" +Output.RecordNoSpace.Msg="There is not sufficient disk space to continue recording." +Output.RecordError.Title="Recording error" +Output.RecordError.Msg="An unspecified error occurred while recording." # output recording messages Output.BadPath.Title="Bad File Path" diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index 8c30268f5..84ac528e2 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -3254,11 +3254,22 @@ void OBSBasic::RecordingStop(int code) ui->recordButton->setText(QTStr("Basic.Main.StartRecording")); blog(LOG_INFO, RECORDING_STOP); - if (code == OBS_OUTPUT_UNSUPPORTED) + if (code == OBS_OUTPUT_UNSUPPORTED) { QMessageBox::information(this, QTStr("Output.RecordFail.Title"), QTStr("Output.RecordFail.Unsupported")); + } else if (code == OBS_OUTPUT_NO_SPACE) { + QMessageBox::information(this, + QTStr("Output.RecordNoSpace.Title"), + QTStr("Output.RecordNoSpace.Msg")); + + } else if (code != OBS_OUTPUT_SUCCESS) { + QMessageBox::information(this, + QTStr("Output.RecordError.Title"), + QTStr("Output.RecordError.Msg")); + } + if (!outputHandler->Active()) { ui->profileMenu->setEnabled(true); }