Start play thread only when 'ttsd_server_play()' is called 88/264188/3
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 13 Sep 2021 11:18:07 +0000 (20:18 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Tue, 12 Oct 2021 05:36:19 +0000 (14:36 +0900)
commit08eaf58af0a355a856955b2df2fb321b80db7a3b
tree923dbe56efef352e0a30fde07b45e5ac37600151
parent20b281c245602bdbd444da4dd87528999f971c07
Start play thread only when 'ttsd_server_play()' is called

Previous code calls 'ttsd_player_play()' repeatedly when 'ttsd_send_result()' is called.
This logic can skip the stop request by player policy, so this patch changes the logic.

By this patch 'ttsd_player_play()' is only called when 'ttsd_server_play()' is called.

Change-Id: I8b1cfa888fc9049c7b17bf900f728eaa6062819f
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/ttsd_player.c
server/ttsd_player.h
server/ttsd_server.c