Skip to content

Commit

Permalink
More consistently return JSON types in browser client
Browse files Browse the repository at this point in the history
  • Loading branch information
WizardCM authored and Lain-B committed Sep 23, 2023
1 parent bbe8c74 commit fc57db4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser-client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 204,7 @@ bool BrowserClient::OnProcessMessageReceived(
if (name == "getScenes") {
struct obs_frontend_source_list list = {};
obs_frontend_get_scenes(&list);
std::vector<const char *> scenes_vector;
std::vector<nlohmann::json> scenes_vector;
for (size_t i = 0; i < list.sources.num; i ) {
obs_source_t *source = list.sources.array[i];
scenes_vector.push_back(
Expand All @@ -230,7 230,7 @@ bool BrowserClient::OnProcessMessageReceived(
} else if (name == "getTransitions") {
struct obs_frontend_source_list list = {};
obs_frontend_get_transitions(&list);
std::vector<const char *> transitions_vector;
std::vector<nlohmann::json> transitions_vector;
for (size_t i = 0; i < list.sources.num; i ) {
obs_source_t *source = list.sources.array[i];
transitions_vector.push_back(
Expand Down

0 comments on commit fc57db4

Please sign in to comment.