UI: Fix crash on exit with stuck encoder
If the encoder is hung and you try to exit these two values will still be null when obs shutting down.
This commit is contained in:
parent
f36b601aab
commit
fa8f95018d
@ -6348,10 +6348,10 @@ void OBSBasic::StreamingStop(int code, QString last_error)
|
||||
|
||||
void OBSBasic::AutoRemux()
|
||||
{
|
||||
QString input = outputHandler->lastRecordingPath.c_str();
|
||||
if (input.isEmpty())
|
||||
if (outputHandler->lastRecordingPath.empty())
|
||||
return;
|
||||
|
||||
QString input = outputHandler->lastRecordingPath.c_str();
|
||||
QFileInfo fi(input);
|
||||
QString suffix = fi.suffix();
|
||||
|
||||
|
@ -145,7 +145,7 @@ void OBSBasicStatusBar::Deactivate()
|
||||
totalRecordSeconds = 0;
|
||||
}
|
||||
|
||||
if (!main->outputHandler->Active()) {
|
||||
if (main->outputHandler && !main->outputHandler->Active()) {
|
||||
delete refreshTimer;
|
||||
|
||||
delayInfo->setText("");
|
||||
|
Loading…
x
Reference in New Issue
Block a user