|
@@ -2785,10 +2785,22 @@ void OBSBasic::OpenSceneFilters()
|
|
CreateFiltersWindow(source);
|
|
CreateFiltersWindow(source);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#define RECORDING_START \
|
|
|
|
+ "==== Recording Start ==============================================="
|
|
|
|
+#define RECORDING_STOP \
|
|
|
|
+ "==== Recording Stop ================================================"
|
|
|
|
+#define STREAMING_START \
|
|
|
|
+ "==== Streaming Start ==============================================="
|
|
|
|
+#define STREAMING_STOP \
|
|
|
|
+ "==== Streaming Stop ================================================"
|
|
|
|
+
|
|
void OBSBasic::StartStreaming()
|
|
void OBSBasic::StartStreaming()
|
|
{
|
|
{
|
|
SaveProject();
|
|
SaveProject();
|
|
|
|
|
|
|
|
+ if (!outputHandler->Active())
|
|
|
|
+ blog(LOG_INFO, STREAMING_START);
|
|
|
|
+
|
|
if (outputHandler->StreamingActive())
|
|
if (outputHandler->StreamingActive())
|
|
return;
|
|
return;
|
|
|
|
|
|
@@ -2804,6 +2816,10 @@ void OBSBasic::StopStreaming()
|
|
|
|
|
|
if (outputHandler->StreamingActive())
|
|
if (outputHandler->StreamingActive())
|
|
outputHandler->StopStreaming();
|
|
outputHandler->StopStreaming();
|
|
|
|
+
|
|
|
|
+ if (!outputHandler->Active()) {
|
|
|
|
+ blog(LOG_INFO, STREAMING_STOP);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
void OBSBasic::StreamingStart()
|
|
void OBSBasic::StreamingStart()
|
|
@@ -2846,6 +2862,10 @@ void OBSBasic::StreamingStop(int code)
|
|
ui->streamButton->setText(QTStr("Basic.Main.StartStreaming"));
|
|
ui->streamButton->setText(QTStr("Basic.Main.StartStreaming"));
|
|
ui->streamButton->setEnabled(true);
|
|
ui->streamButton->setEnabled(true);
|
|
|
|
|
|
|
|
+ if (!outputHandler->Active()) {
|
|
|
|
+ blog(LOG_INFO, STREAMING_STOP);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (code != OBS_OUTPUT_SUCCESS)
|
|
if (code != OBS_OUTPUT_SUCCESS)
|
|
QMessageBox::information(this,
|
|
QMessageBox::information(this,
|
|
QTStr("Output.ConnectFail.Title"),
|
|
QTStr("Output.ConnectFail.Title"),
|
|
@@ -2856,6 +2876,9 @@ void OBSBasic::StartRecording()
|
|
{
|
|
{
|
|
SaveProject();
|
|
SaveProject();
|
|
|
|
|
|
|
|
+ if (!outputHandler->Active())
|
|
|
|
+ blog(LOG_INFO, RECORDING_START);
|
|
|
|
+
|
|
if (!outputHandler->RecordingActive())
|
|
if (!outputHandler->RecordingActive())
|
|
outputHandler->StartRecording();
|
|
outputHandler->StartRecording();
|
|
}
|
|
}
|
|
@@ -2866,6 +2889,10 @@ void OBSBasic::StopRecording()
|
|
|
|
|
|
if (outputHandler->RecordingActive())
|
|
if (outputHandler->RecordingActive())
|
|
outputHandler->StopRecording();
|
|
outputHandler->StopRecording();
|
|
|
|
+
|
|
|
|
+ if (!outputHandler->Active()) {
|
|
|
|
+ blog(LOG_INFO, RECORDING_STOP);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
void OBSBasic::RecordingStart()
|
|
void OBSBasic::RecordingStart()
|
|
@@ -2883,6 +2910,10 @@ void OBSBasic::RecordingStop(int code)
|
|
QMessageBox::information(this,
|
|
QMessageBox::information(this,
|
|
QTStr("Output.RecordFail.Title"),
|
|
QTStr("Output.RecordFail.Title"),
|
|
QTStr("Output.RecordFail.Unsupported"));
|
|
QTStr("Output.RecordFail.Unsupported"));
|
|
|
|
+
|
|
|
|
+ if (!outputHandler->Active()) {
|
|
|
|
+ blog(LOG_INFO, RECORDING_STOP);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
void OBSBasic::on_streamButton_clicked()
|
|
void OBSBasic::on_streamButton_clicked()
|