Skip to content

Commit d41fa67

Browse files
authored
osn-input: log source id before creating input (#1721)
1 parent 1292721 commit d41fa67

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

obs-studio-server/source/osn-input.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ void osn::Input::Create(void *data, const int64_t id, const std::vector<ipc::val
117117
sourceId += "_v" + std::to_string(version);
118118
}
119119

120+
// Before create so a crash in obs_source_create still records the source id.
121+
blog(LOG_INFO, "Creating input source '%s' (name: '%s')", sourceId.c_str(), name.c_str());
120122
obs_source_t *source = obs_source_create(sourceId.c_str(), name.c_str(), settings, hotkeys);
121123
obs_data_release(hotkeys);
122124
obs_data_release(settings);

0 commit comments

Comments
 (0)