зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1221520 - nullcheck for mSpeechdClient. r=eeejay
This commit is contained in:
Родитель
6a05cb9993
Коммит
9130d219ea
|
@ -344,6 +344,10 @@ SpeechDispatcherService::Init()
|
|||
}
|
||||
|
||||
mSpeechdClient = spd_open("firefox", "web speech api", "who", SPD_MODE_THREADED);
|
||||
if (!mSpeechdClient) {
|
||||
NS_WARNING("Failed to call spd_open");
|
||||
return;
|
||||
}
|
||||
|
||||
// Get all the voices from sapi and register in the SynthVoiceRegistry
|
||||
SPDVoice** list = spd_list_synthesis_voices(mSpeechdClient);
|
||||
|
|
Загрузка…
Ссылка в новой задаче