mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
allow for "linuxbrowser_source" to be controlled
based on the request at https://github.com/bazukas/obs-linuxbrowser/issues/46 I did a quick search for the string "browser_source" and these seem to be the only two occurrences. Enhancing the conditional with the identifier of the obs-linuxbrowser plugin, this should solve the problem. As I'm currently not at home, I can't verify this does what it should, but I will test it later tonight. @mjc666 if you are still interested please give it a test run to verify if these two plugins work together now.
This commit is contained in:
parent
57ce3cf80b
commit
9e4fc9eb73
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user