Merge pull request #360 from ZyanKLee/patch-1

allow for "linuxbrowser_source" to be controlled
This commit is contained in:
Stéphane Lepin 2019-08-26 21:02:00 +02:00 committed by GitHub
commit 3142e097a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -923,7 +923,7 @@ HandlerResponse WSRequestHandler::HandleGetBrowserSourceProperties(WSRequestHand
}
QString sourceId = obs_source_get_id(source);
if (sourceId != "browser_source") {
if (sourceId != "browser_source" && sourceId != "linuxbrowser-source") {
return req->SendErrorResponse("not a browser source");
}
@ -969,7 +969,7 @@ HandlerResponse WSRequestHandler::HandleSetBrowserSourceProperties(WSRequestHand
}
QString sourceId = obs_source_get_id(source);
if(sourceId != "browser_source") {
if(sourceId != "browser_source" && sourceId != "linuxbrowser-source") {
return req->SendErrorResponse("not a browser source");
}