SLOG(LOG_ERROR, stt_tag(), "[Engine ERROR] Fail to send result");
}
} else {
- g_result_cb(event, type, result, result_count, msg, time_info, user_data);
+ ret = g_result_cb(event, type, result, result_count, msg, time_info, user_data);
}
return ret;
}
int stt_engine_send_error(stte_error_e error, const char* msg)
{
- if (NULL == msg) {
- SLOG(LOG_ERROR, stt_tag(), "[Engine ERROR] Invalid parameter");
- }
-
int ret = STTE_ERROR_NONE;
ret = sttd_engine_agent_send_error(error, msg);
if (0 != ret) {