From 618937d92f5477cb1bd45e44002e714ad728d331 Mon Sep 17 00:00:00 2001 From: djevo1 Date: Wed, 10 May 2023 10:39:18 -0400 Subject: [PATCH] Changes --- src/Main.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Main.cpp b/src/Main.cpp index 22f917a..15320d9 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -112,12 +112,16 @@ void generateSchema(std::vector &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 channels; + channels.push_back("Default"); + schema.schema.channels.nChannels = channels.size(); + schema.schema.channels.channels = channels.data(); if (!genOutputs) { schema.schema.scenes.nScenes = 1; @@ -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"); - */ + }