mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
requests(OpenProjector): wrap version check with parentheses
This commit is contained in:
parent
010102da25
commit
796bdebd90
@ -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")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user