mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user