From: jiyong.min Date: Mon, 31 Jul 2023 06:51:38 +0000 (+0900) Subject: Bug fix. Command or event was not delivered sometimes X-Git-Tag: accepted/tizen/8.0/unified/20231005.092726^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F20%2F296520%2F1;p=platform%2Fcore%2Fapi%2Fmedia-controller.git Bug fix. Command or event was not delivered sometimes [Cause] All the same items were removed from command list for single sending command. [Solution] It is changed to remove one item from command list. Change-Id: Ic6fea259cdb225aad8a0d267ea419ba026ed53f0 --- diff --git a/packaging/capi-media-controller.spec b/packaging/capi-media-controller.spec index cd8ff88..bdceb03 100644 --- a/packaging/capi-media-controller.spec +++ b/packaging/capi-media-controller.spec @@ -1,6 +1,6 @@ Name: capi-media-controller Summary: A media controller library in Tizen Native API -Version: 0.2.36 +Version: 0.2.37 Release: 1 Group: Multimedia/API License: Apache-2.0 diff --git a/svc/media_controller_svc.c b/svc/media_controller_svc.c index 7570f65..c48831d 100644 --- a/svc/media_controller_svc.c +++ b/svc/media_controller_svc.c @@ -150,7 +150,7 @@ static void __mc_remove_cmd_to_send(gpointer data, gpointer user_data) mc_retm_if_failed(_user_data->message->msg_size); mc_retm_if_failed(MC_STRING_VALID(_user_data->message->msg)); - while ((found_cmd = g_list_find_custom(_app_data->cmds_to_send, (gconstpointer)_user_data->message->msg, + if ((found_cmd = g_list_find_custom(_app_data->cmds_to_send, (gconstpointer)_user_data->message->msg, __mc_compare_cmd)) != NULL) { mc_info("remove cmd: %s", (char *)(found_cmd->data)); _app_data->cmds_to_send = g_list_remove_link(_app_data->cmds_to_send, found_cmd);