Browse Source

rtmp-services: Fix building with service updates disabled

Two constants are marked as -Wunused-variable which turns into an error
tytan652 2 years ago
parent
commit
ac241faff1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      plugins/rtmp-services/rtmp-services-main.c

+ 2 - 0
plugins/rtmp-services/rtmp-services-main.c

@@ -17,8 +17,10 @@ MODULE_EXPORT const char *obs_module_description(void)
 	return "OBS core RTMP services";
 }
 
+#if defined(ENABLE_SERVICE_UPDATES)
 static const char *RTMP_SERVICES_LOG_STR = "[rtmp-services plugin] ";
 static const char *RTMP_SERVICES_URL = (const char *)SERVICES_URL;
+#endif
 
 extern struct obs_service_info rtmp_common_service;
 extern struct obs_service_info rtmp_custom_service;