Skip invalid json object settings value

This commit is contained in:
WarmUpTill 2026-02-04 13:17:29 +01:00
parent 149fce1c2b
commit 78d2efa083

View File

@ -335,6 +335,12 @@ void SetSourceSetting(obs_source_t *source, const SourceSetting &setting,
case OBS_DATA_OBJECT: {
OBSDataAutoRelease json =
obs_data_create_from_json(value.c_str());
if (!json) {
blog(LOG_WARNING,
"not setting invalid data object settings value! (%s)",
value.c_str());
break;
}
obs_data_set_obj(data, id.c_str(), json);
break;
}