From 9bf23186543eb0badb3f079317feb970e0452384 Mon Sep 17 00:00:00 2001 From: SuslikV Date: Wed, 9 Aug 2017 20:34:51 +0200 Subject: [PATCH] UI: Fix conditions for redraw the stats labels After the commit 3491487c71cb5 obs_frontend_get_streaming_output() returns NULL if "Start Streaming" button not pressed yet. The code would erroneously fail to update the recording/streaming status if either one of them hadn't been activated yet. Closes jp9000/obs-studio#999 --- UI/window-basic-stats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/window-basic-stats.cpp b/UI/window-basic-stats.cpp index d3dcbe3ab..eec8fd679 100644 --- a/UI/window-basic-stats.cpp +++ b/UI/window-basic-stats.cpp @@ -240,7 +240,7 @@ void OBSBasicStats::Update() obs_output_release(strOutput); obs_output_release(recOutput); - if (!strOutput || !recOutput) + if (!strOutput && !recOutput) return; /* ------------------------------------------- */