diff options
author | jiyong.min <jiyong.min@samsung.com> | 2023-07-31 15:51:38 +0900 |
---|---|---|
committer | jiyong.min <jiyong.min@samsung.com> | 2023-07-31 16:01:47 +0900 |
commit | 764a5dcb863f0667ae089572f8ec43b94cda5ab2 (patch) | |
tree | e58a7364a0d3e991e10871459595176072b70b1b | |
parent | 3d2519e91aa643a4da88297e1e75bb3cf550827e (diff) | |
download | media-controller-accepted/tizen_6.5_unified.tar.gz media-controller-accepted/tizen_6.5_unified.tar.bz2 media-controller-accepted/tizen_6.5_unified.zip |
Bug fix. Command or event was not delivered sometimesaccepted/tizen/6.5/unified/20230807.014208tizen_6.5accepted/tizen_6.5_unified
[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
-rw-r--r-- | packaging/capi-media-controller.spec | 2 | ||||
-rw-r--r-- | svc/media_controller_svc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packaging/capi-media-controller.spec b/packaging/capi-media-controller.spec index 179bc20..45fe4d3 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.28 +Version: 0.2.29 Release: 1 Group: Multimedia/API License: Apache-2.0 diff --git a/svc/media_controller_svc.c b/svc/media_controller_svc.c index d0ac6e4..945487f 100644 --- a/svc/media_controller_svc.c +++ b/svc/media_controller_svc.c @@ -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); |