From 5eeae2d8b2b513667b0901a03e182c4d52c93a28 Mon Sep 17 00:00:00 2001 From: cg2121 Date: Sun, 19 May 2024 04:55:28 -0500 Subject: [PATCH] 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. --- UI/window-basic-status-bar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/window-basic-status-bar.cpp b/UI/window-basic-status-bar.cpp index 3526149d9..bb4255480 100644 --- a/UI/window-basic-status-bar.cpp +++ b/UI/window-basic-status-bar.cpp @@ -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);