mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 09:39:15 +00:00
UI: Fix conditions for redraw the stats labels
After the commit 3491487c71
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
This commit is contained in:
parent
00f6bbe99c
commit
9bf2318654
|
@ -240,7 +240,7 @@ void OBSBasicStats::Update()
|
|||
obs_output_release(strOutput);
|
||||
obs_output_release(recOutput);
|
||||
|
||||
if (!strOutput || !recOutput)
|
||||
if (!strOutput && !recOutput)
|
||||
return;
|
||||
|
||||
/* ------------------------------------------- */
|
||||
|
|
Loading…
Reference in a new issue