Invoke register callback once during tts_prepare() 83/265883/2
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 1 Nov 2021 08:24:55 +0000 (17:24 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Tue, 2 Nov 2021 06:12:51 +0000 (15:12 +0900)
commit9b611a7595b5d1d348e4c098e234f38085e46a12
tree7d8a34dfe6cfd1c4a79c4b6fe8d04dd6e05ac8d0
parentc0bf0345a4cdca45b516e72fae43efcb37a7cf1c
Invoke register callback once during tts_prepare()

Current code tries to create new notify callback handle every callback register. It is for
matching business logic for dbus. However, server can send message through expired callback handle
by this logic.

This patch makes code create and register callback handle once during tts_prepare().
By this change, server always sends message throught valid callback handle.
However, if registering callback is failed, this logic can not handle the situation.

If the situation occurs, handling code should be required.

Change-Id: I5e88be20ffc84c0ace99e4559440219c21d36089
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
client/tts_tidl.c