UI: Make status bar record output a weak ref

This changes the status bar record output from a strong reference
to a weak one.
This commit is contained in:
cg2121 2024-05-30 17:33:39 -05:00 committed by Ryan Foster
parent 9c427c5f93
commit 17d654fcfc
2 changed files with 2 additions and 2 deletions

View file

@ -561,7 +561,7 @@ void OBSBasicStatusBar::StreamStopped()
void OBSBasicStatusBar::RecordingStarted(obs_output_t *output)
{
recordOutput = output;
recordOutput = OBSGetWeakRef(output);
Activate();
}

View file

@ -29,7 +29,7 @@ private:
OBSWeakOutputAutoRelease streamOutput;
std::vector<OBSSignal> streamSigs;
obs_output_t *recordOutput = nullptr;
OBSWeakOutputAutoRelease recordOutput;
bool active = false;
bool overloadedNotify = true;
bool streamPauseIconToggle = false;