Fix tidl error handling code 35/278935/3
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 28 Jul 2022 07:52:38 +0000 (16:52 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Mon, 1 Aug 2022 06:44:45 +0000 (15:44 +0900)
commit55aca38dfb920eb3e8882e42b584f8e687454b03
treed97a74268010a3369244c5c121f85007b6b773f8
parent82b11084740222551610d13f05cc6ce97a311c45
Fix tidl error handling code

- Issue:
TIDL functions always return -1 even if those are failed by various
reasons.

- Solution:
The code generated by tidlc uses 'set_last_result()' and 'get_last_result()'
function for handling exception. Thus, the caller of those code should
check the error code of 'get_last_result()' first. However, current code
only check return value of each functions.
This patch adds logic for check the error from 'get_last_result()'.
Through this change, framework can handle error from tidl code properly.

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