From aa313a1fb14901ddfc741a222768c87f1bb2a3aa Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Thu, 18 Jun 2020 23:45:52 +0200 Subject: [PATCH] UI: Don't try to create service if missing file This would cause meaningless "Service '' not found" log entries. --- UI/window-basic-main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 5164d3519..5c109cbcd 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -1118,6 +1118,9 @@ bool OBSBasic::LoadService() obs_data_t *data = obs_data_create_from_json_file_safe(serviceJsonPath, "bak"); + if (!data) + return false; + obs_data_set_default_string(data, "type", "rtmp_common"); type = obs_data_get_string(data, "type");