aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/soundmanager.c6
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
+}