Update statusbar when recording
parent
b4311a0de1
commit
083b5d693b
|
@ -282,6 +282,14 @@ static void OBSStopStreaming(void *data, calldata_t params)
|
||||||
"StreamingStop", Q_ARG(int, code));
|
"StreamingStop", Q_ARG(int, code));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void OBSStartRecording(void *data, calldata_t params)
|
||||||
|
{
|
||||||
|
UNUSED_PARAMETER(params);
|
||||||
|
|
||||||
|
QMetaObject::invokeMethod(static_cast<OBSBasic*>(data),
|
||||||
|
"RecordingStart");
|
||||||
|
}
|
||||||
|
|
||||||
static void OBSStopRecording(void *data, calldata_t params)
|
static void OBSStopRecording(void *data, calldata_t params)
|
||||||
{
|
{
|
||||||
UNUSED_PARAMETER(params);
|
UNUSED_PARAMETER(params);
|
||||||
|
@ -359,6 +367,8 @@ bool OBSBasic::InitOutputs()
|
||||||
signal_handler_connect(obs_output_get_signal_handler(streamOutput),
|
signal_handler_connect(obs_output_get_signal_handler(streamOutput),
|
||||||
"stop", OBSStopStreaming, this);
|
"stop", OBSStopStreaming, this);
|
||||||
|
|
||||||
|
signal_handler_connect(obs_output_get_signal_handler(fileOutput),
|
||||||
|
"start", OBSStartRecording, this);
|
||||||
signal_handler_connect(obs_output_get_signal_handler(fileOutput),
|
signal_handler_connect(obs_output_get_signal_handler(fileOutput),
|
||||||
"stop", OBSStopRecording, this);
|
"stop", OBSStopRecording, this);
|
||||||
|
|
||||||
|
@ -1944,8 +1954,14 @@ void OBSBasic::StreamingStop(int code)
|
||||||
QT_UTF8(errorMessage));
|
QT_UTF8(errorMessage));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OBSBasic::RecordingStart()
|
||||||
|
{
|
||||||
|
ui->statusbar->RecordingStarted(fileOutput);
|
||||||
|
}
|
||||||
|
|
||||||
void OBSBasic::RecordingStop()
|
void OBSBasic::RecordingStop()
|
||||||
{
|
{
|
||||||
|
ui->statusbar->RecordingStopped();
|
||||||
activeRefs--;
|
activeRefs--;
|
||||||
ui->recordButton->setText(QTStr("Basic.Main.StartRecording"));
|
ui->recordButton->setText(QTStr("Basic.Main.StartRecording"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -146,6 +146,7 @@ public slots:
|
||||||
void StreamingStart();
|
void StreamingStart();
|
||||||
void StreamingStop(int errorcode);
|
void StreamingStop(int errorcode);
|
||||||
|
|
||||||
|
void RecordingStart();
|
||||||
void RecordingStop();
|
void RecordingStop();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
Loading…
Reference in New Issue