Skip to content

Commit 6240457

Browse files
committed
utils: Add inputKindCaps field to input list array
I debated adding this to the input kinds array, where this field's value truly comes from, but the value of that return is `Array<String>`, so we don't really have any options without bumping the current RPC version. I am thinking of revisiting some aspects of the obs-websocket request objectives, and bumping the RPC version. I would like to take a more REST-style approach to reading/modification of OBS state.
1 parent a3ec7a3 commit 6240457

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/Obs_ArrayHelper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ std::vector<json> Utils::Obs::ArrayHelper::GetInputList(std::string inputKind)
200200
inputJson["inputUuid"] = obs_source_get_uuid(input);
201201
inputJson["inputKind"] = inputKind;
202202
inputJson["unversionedInputKind"] = obs_source_get_unversioned_id(input);
203+
inputJson["inputKindCaps"] = obs_source_get_output_flags(input);
203204

204205
inputInfo->inputs.push_back(inputJson);
205206
return true;

0 commit comments

Comments
 (0)