Remove tts_core_notify_state_changed_async() to assure callback invocation 01/275001/3
authorSuyeon Hwang <stom.hwang@samsung.com>
Fri, 13 May 2022 07:46:22 +0000 (16:46 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 16 Jun 2022 09:07:06 +0000 (09:07 +0000)
commit96442c635cea9dbdda6d30c8be54636ed8bb146d
tree3bc115bd95b12327c4cf0279044177c421e47b7d
parent8a772c001c312f4909fe16c8ef67fd29cb116e1c
Remove tts_core_notify_state_changed_async() to assure callback invocation

- Issue:
Sometimes, if client calls tts_play() very quickly, then the first state changed callback which
shows the change from 'created' to 'ready' state is skipped.

- Solution:
This patch removes the tts_core_notify_state_changed_async() function in order to make sure that
the first state changed callback is called. tts_core_notify_state_changed_async() can not assure
the callback invocation of all state changed because state of client can be changed between timer
register and its actual invocation. And also, without this function, calback invocation does not
block the main loop because all the callers of this function is called by ipc message.
Thus, by this patch, client can assure that the state changed callback is always invoked when
the state is changed.

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