mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-02 09:33:33 +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)
|
void OBSBasicStatusBar::RecordingStarted(obs_output_t *output)
|
||||||
{
|
{
|
||||||
recordOutput = output;
|
recordOutput = OBSGetWeakRef(output);
|
||||||
Activate();
|
Activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ private:
|
||||||
|
|
||||||
OBSWeakOutputAutoRelease streamOutput;
|
OBSWeakOutputAutoRelease streamOutput;
|
||||||
std::vector<OBSSignal> streamSigs;
|
std::vector<OBSSignal> streamSigs;
|
||||||
obs_output_t *recordOutput = nullptr;
|
OBSWeakOutputAutoRelease recordOutput;
|
||||||
bool active = false;
|
bool active = false;
|
||||||
bool overloadedNotify = true;
|
bool overloadedNotify = true;
|
||||||
bool streamPauseIconToggle = false;
|
bool streamPauseIconToggle = false;
|
||||||
|
|
Loading…
Reference in a new issue