提交 1151c6ce 编写于 作者: Q Quinn Damerell 提交者: jp9000

obs-outputs: Fix invalid stream key error

Fixes an issue where it would show the wrong error when the user entered
an invalid stream key, and logs it

Closes jp9000/obs-studio#1015
上级 8111f998
......@@ -644,10 +644,16 @@ static int try_connect(struct ftl_stream *stream)
status_code = ftl_ingest_connect(&stream->ftl_handle);
if (status_code != FTL_SUCCESS) {
warn("Ingest connect failed with: %s (%d)",
ftl_status_code_to_string(status_code),
status_code);
return _ftl_error_to_obs_error(status_code);
if (status_code == FTL_BAD_OR_INVALID_STREAM_KEY) {
blog(LOG_ERROR, "Invalid Key (%s)",
ftl_status_code_to_string(status_code));
return OBS_OUTPUT_INVALID_STREAM;
} else {
warn("Ingest connect failed with: %s (%d)",
ftl_status_code_to_string(status_code),
status_code);
return _ftl_error_to_obs_error(status_code);
}
}
info("Connection to %s successful", stream->path.array);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册