Bug fix. Command or event was not delivered sometimes 22/296522/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20230807.014208
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 07:01:47 +0000 (16:01 +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 179bc200883358ccb92abbfd66606cdb3a69b7d1..45fe4d33472b279fac5ba86db6947bb881f04924 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-controller
 Summary:    A media controller library in Tizen Native API
-Version:    0.2.28
+Version:    0.2.29
 Release:    1
 Group:      Multimedia/API
 License:    Apache-2.0
index d0ac6e47f8dc3a085c3a6cb96f929a8b82773fc2..945487f2821ffd08a6f9368e0f6eeadc2769ea82 100644 (file)
@@ -157,7 +157,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);