Skip to content

Commit

Permalink
Make stream output name unique
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Jul 16, 2024
1 parent ba8cdf1 commit 8de87e4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vertical-canvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,7 @@ CanvasDock::~CanvasDock()
calldata_free(&cd);

DestroyVideo();

obs_view_destroy(view);

obs_enter_graphics();
Expand Down Expand Up @@ -5881,7 +5881,12 @@ void CanvasDock::CreateStreamOutput(std::vector<StreamServer>::iterator it)
obs_output_stop(it->output);
obs_output_release(it->output);
}
it->output = obs_output_create(type, "vertical_canvas_stream", nullptr, nullptr);
std::string name = "vertical_canvas_stream";
if (!it->name.empty()) {
name += "_";
name += it->name;
}
it->output = obs_output_create(type, name.c_str(), nullptr, nullptr);
obs_output_set_service(it->output, it->service);
}
config_t *config = obs_frontend_get_profile_config();
Expand Down

0 comments on commit 8de87e4

Please sign in to comment.