Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
medcelerate committed May 10, 2023
1 parent f0ff8f7 commit 618937d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,16 @@ void generateSchema(std::vector<std::string> &senders, ScopedSchema& schema, boo

//Change the below line to use a smart pointer

schema.schema.engineName = "SpoutRenderStream";
schema.schema.engineVersion = "1.8";
schema.schema.info = "";
schema.schema.pluginVersion = "2.0";
schema.schema.engineName = _strdup("SpoutRenderStream");
schema.schema.engineVersion = _strdup("1.8");
schema.schema.info = _strdup("");
schema.schema.pluginVersion = _strdup("2.0");

std::vector<const char*> channels;
channels.push_back("Default");

schema.schema.channels.nChannels = channels.size();
schema.schema.channels.channels = channels.data();

if (!genOutputs) {
schema.schema.scenes.nScenes = 1;
Expand Down Expand Up @@ -451,11 +455,11 @@ int main(int argc, char* argv[])
// or if you want it to be user-editable

//Commenting this fixes the crash in RS2.0, I'm unsure why at the moment.
/*

const Schema* importedSchema = rs.loadSchema(argv[0]);
if (importedSchema && importedSchema->scenes.nScenes > 0)
std::printf("A schema existed on disk");
*/

}


Expand Down

0 comments on commit 618937d

Please sign in to comment.