Bug fix. Command or event was not delivered sometimes 20/296520/1 accepted/tizen/8.0/unified/20231005.092726 accepted/tizen/unified/20230801.174236 tizen_8.0_m2_release
authorjiyong.min <jiyong.min@samsung.com>
Mon, 31 Jul 2023 06:51:38 +0000 (15:51 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Mon, 31 Jul 2023 06:51:38 +0000 (15:51 +0900)
[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

packaging/capi-media-controller.spec
svc/media_controller_svc.c

index cd8ff88..bdceb03 100644 (file)
@@ -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
index 7570f65..c48831d 100644 (file)
@@ -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);