mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
requests(OpenProjector): refactor libobs version check
This commit is contained in:
parent
5173338949
commit
d8f2aeb004
@ -331,7 +331,7 @@ RpcResponse WSRequestHandler::GetVideoInfo(const RpcRequest& request) {
|
||||
* @since unreleased
|
||||
*/
|
||||
RpcResponse WSRequestHandler::OpenProjector(const RpcRequest& request) {
|
||||
#if LIBOBS_API_VER >= 0x18000004
|
||||
#if LIBOBS_API_VER >= MAKE_SEMANTIC_VERSION(24, 0, 4)
|
||||
const char *type = obs_data_get_string(request.parameters(), "type");
|
||||
int monitor = -1;
|
||||
if (request.hasField("monitor")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user