mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-06-30 08:33:32 +00:00
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:
parent
9c427c5f93
commit
17d654fcfc
|
@ -561,7 +561,7 @@ void OBSBasicStatusBar::StreamStopped()
|
|||
|
||||
void OBSBasicStatusBar::RecordingStarted(obs_output_t *output)
|
||||
{
|
||||
recordOutput = output;
|
||||
recordOutput = OBSGetWeakRef(output);
|
||||
Activate();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue