mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Fix if statement
Add missing closing bracket and use !source_name instead of source_name == NULL
This commit is contained in:
parent
75b21d070a
commit
712bd6e8f3
@ -722,8 +722,8 @@ void WSRequestHandler::HandleSetSyncOffset(WSRequestHandler* req) {
|
||||
const char* source_name = obs_data_get_string(req->data, "source");
|
||||
int64_t source_sync_offset = (int64_t)obs_data_get_int(req->data, "offset");
|
||||
|
||||
if (source_name == NULL || strlen(source_name) < 1 ||
|
||||
source_sync_offset < 0 {
|
||||
if (!source_name || strlen(source_name) < 1 ||
|
||||
source_sync_offset < 0) {
|
||||
req->SendErrorResponse("invalid request parameters");
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user