fix CID 472161

remaining 2 occurences
This commit is contained in:
Martin Pulec
2025-04-14 13:11:14 +02:00
parent 69159df679
commit e3c5f3f92d

View File

@@ -196,7 +196,7 @@ static int vidcap_ndi_init(struct vidcap_params *params, void **state)
// Not required, but "correct" (see the SDK documentation)
if (!s->NDIlib->initialize()) {
LOG(LOG_LEVEL_ERROR) << MOD_NAME << "Cannot initialize NDI!\n";
delete s;
vidcap_ndi_done(s);
return VIDCAP_INIT_FAIL;
}
if ((vidcap_params_get_flags(params) & VIDCAP_FLAG_AUDIO_ANY) != 0u) {
@@ -235,7 +235,7 @@ static int vidcap_ndi_init(struct vidcap_params *params, void **state)
ref_level = strtol(val, &endptr, 0);
if (ref_level < 0 || ref_level >= INT_MAX || *val == '\0' || *endptr != '\0') {
LOG(LOG_LEVEL_ERROR) << MOD_NAME << "Wrong value: " << val << "!\n";
delete s;
vidcap_ndi_done(s);
return VIDCAP_INIT_NOERR;
}
}