requests(OpenProjector): wrap version check with parentheses

This commit is contained in:
Stéphane Lepin 2020-03-12 17:27:28 +01:00
parent 010102da25
commit 796bdebd90

View File

@ -331,7 +331,7 @@ RpcResponse WSRequestHandler::GetVideoInfo(const RpcRequest& request) {
* @since unreleased * @since unreleased
*/ */
RpcResponse WSRequestHandler::OpenProjector(const RpcRequest& request) { RpcResponse WSRequestHandler::OpenProjector(const RpcRequest& request) {
#if LIBOBS_API_VER >= MAKE_SEMANTIC_VERSION(24, 0, 4) #if (LIBOBS_API_VER >= MAKE_SEMANTIC_VERSION(24, 0, 4))
const char *type = obs_data_get_string(request.parameters(), "type"); const char *type = obs_data_get_string(request.parameters(), "type");
int monitor = -1; int monitor = -1;
if (request.hasField("monitor")) { if (request.hasField("monitor")) {