diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-04-27 19:13:56 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-04-27 19:13:56 +0900 |
commit | 9f46383f7f163650c4df30ba92caaabd871262b0 (patch) | |
tree | d1eec89c11d64d9817b5c1df3f3acfe71fd6211e | |
parent | 0b1f8c3709c7906a73ab67cb8b82ab99d2702772 (diff) |
Call ackSetSourceState when the application uses high level API
Change-Id: I24235d4445341106ccd97a750bc9badee7004dc3
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r-- | src/soundmanager.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/soundmanager.c b/src/soundmanager.c index 0a8a093..a8a2b9e 100644 --- a/src/soundmanager.c +++ b/src/soundmanager.c @@ -974,11 +974,13 @@ static void on_async_set_source_state(int handle, int sourceID, int sourceState) AFB_DEBUG( "%s called", __FUNCTION__); struct pending* pd = get_pending(pending_list, sourceID); if(pd != NULL){ - AFB_DEBUG("Call ackSetSourceState in for the application"); + AFB_INFO("Call ackSetSourceState instead of the application(the sourceID %d use high level API)", sourceID); struct json_object* ahl_rep = json_object_new_object(); const char* ahl_ss_key = get_source_state_key(sourceState); json_object_object_add(ahl_rep, KEY_SOURCE_STATE, json_object_new_string(ahl_ss_key)); afb_req_success(pd->source.request, ahl_rep, NULL); + int ack_ok = 0; + am_proxy_ack_set_source_state(handle, ack_ok); pending_list = del_pending(pending_list, sourceID); } struct json_object* ev_obj = json_object_new_object(); @@ -1175,4 +1177,4 @@ int sm_init() void onevent(const char *event, struct json_object *object) { AFB_NOTICE("on_event %s", event); -}
\ No newline at end of file +} |