UI: Change how the status bar gets weak stream output

The changes obs_output_get_weak_output to OBSGetWeakRef to be
consistent with the other UI code.
This commit is contained in:
cg2121 2024-05-19 04:55:28 -05:00 committed by Lain
parent cffdc15aac
commit 5eeae2d8b2

View file

@ -518,7 +518,7 @@ void OBSBasicStatusBar::StreamDelayStarting(int sec)
return;
OBSOutputAutoRelease output = obs_frontend_get_streaming_output();
streamOutput = obs_output_get_weak_output(output);
streamOutput = OBSGetWeakRef(output);
delaySecTotal = delaySecStarting = sec;
UpdateDelayMsg();
@ -533,7 +533,7 @@ void OBSBasicStatusBar::StreamDelayStopping(int sec)
void OBSBasicStatusBar::StreamStarted(obs_output_t *output)
{
streamOutput = obs_output_get_weak_output(output);
streamOutput = OBSGetWeakRef(output);
streamSigs.emplace_back(obs_output_get_signal_handler(output),
"reconnect", OBSOutputReconnect, this);