Call ttse_terminate() when TTS engine is changed 89/261989/3
authorsooyeon <sooyeon.kim@samsung.com>
Fri, 30 Jul 2021 15:37:04 +0000 (00:37 +0900)
committersooyeon <sooyeon.kim@samsung.com>
Fri, 30 Jul 2021 16:37:31 +0000 (01:37 +0900)
commit88e2caa03c83540c8e2bd5d56052621f3aa706db
treea5b99ccfbc360830ceeec8a05891c3c7f9864231
parent9fa4d13888c98d00b9f07b133e000873e643db8b
Call ttse_terminate() when TTS engine is changed

- Previously, when TTS engine is changed, TTS clients call unprepare() and prepare() in order to connect to a new TTS engine.
In this case, dbus primary owner issue is occurred, because some clients request prepare() before the old TTS engine is terminated.(timing issue)
To solve this issue, we make TTS engine terminated by itself with calling ttse_terminate().
When TTS engine is terminated, all TTS clients can receive SERVICE_RESET and try to reprepare for the new TTS engine.
This can solve the dbus primary owner issue.

Change-Id: I431677f58f76322b6751cfbbf24009073fd35fc6
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
client/tts.c
client/tts_core.c
client/tts_tidl.c
server/ttse.c