mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-02 14:42:45 +00:00
Use the error context API in espeak_ng_Initialize.
This commit is contained in:
+3
-1
@@ -575,9 +575,11 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
espeak_ng_InitializePath(data_path);
|
||||
espeak_ng_STATUS result = espeak_ng_Initialize();
|
||||
espeak_ng_ERROR_CONTEXT context = NULL;
|
||||
espeak_ng_STATUS result = espeak_ng_Initialize(&context);
|
||||
if (result != ENS_OK) {
|
||||
espeak_ng_PrintStatusCodeMessage(result, stderr);
|
||||
espeak_ng_ClearErrorContext(&context);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user