diff options
author | Jiyong Min <jiyong.min@samsung.com> | 2017-09-13 18:48:00 +0900 |
---|---|---|
committer | Jiyong Min <jiyong.min@samsung.com> | 2017-09-18 02:05:34 +0000 |
commit | 52d53070c7902ed6fed5bf1a95d63cf689a59d95 (patch) | |
tree | 5a331203977e6f6860caadc310dd84266f655219 | |
parent | 28c739735bc67a957864ba9491a94bd572138ae9 (diff) | |
download | media-controller-52d53070c7902ed6fed5bf1a95d63cf689a59d95.tar.gz media-controller-52d53070c7902ed6fed5bf1a95d63cf689a59d95.tar.bz2 media-controller-52d53070c7902ed6fed5bf1a95d63cf689a59d95.zip |
Modify the interface naming for D-Bus (Add some prefix before app_id)submit/tizen/20170918.224228accepted/tizen/unified/20170920.081256
[Problem]
Rarely, media-controller return error(-38) for specific web-application.
- Cause
If the web application has the app_id begins with number, also an element of D-Bus interface
begins with number due to the app_id is one of the element.
But D-Bus does not accept that the element begins with number, so D-Bus return error.
- Solution
The prefix has been added before app_id, so all elements of the interface begins with character.
Change-Id: I5ed79375d3494880f92a1b620baadb5303084309
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
(cherry picked from commit 81ad6777b831c8d6e51c026a232e39f989d6b899)
-rwxr-xr-x | packaging/capi-media-controller.spec | 2 | ||||
-rwxr-xr-x | src/media_controller_util.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packaging/capi-media-controller.spec b/packaging/capi-media-controller.spec index ba8ada2..c690a38 100755 --- 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.1.47 +Version: 0.1.48 Release: 1 Group: Multimedia/API License: Apache-2.0 diff --git a/src/media_controller_util.c b/src/media_controller_util.c index 4b94eed..7ad6f2a 100755 --- a/src/media_controller_util.c +++ b/src/media_controller_util.c @@ -88,7 +88,7 @@ char *mc_util_get_interface_name(const char *type, const char *name) mc_retvm_if(type == NULL, NULL, "type is NULL"); mc_retvm_if(name == NULL, NULL, "name is NULL"); - temp = g_strdup_printf("%s.%s.%s", MC_DBUS_INTERFACE_PREFIX, type, name); + temp = g_strdup_printf("%s.%s%s", MC_DBUS_INTERFACE_PREFIX, type, name); _mc_util_check_valid_name(temp, &interface_name); MC_SAFE_G_FREE(temp); @@ -102,7 +102,7 @@ int mc_util_make_filter_interface_name(const char *prefix, const char *filter, c mc_retvm_if(prefix == NULL, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "prefix is NULL"); mc_retvm_if(filter == NULL, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "filter is NULL"); - temp = g_strdup_printf("%s.%s", prefix, filter); + temp = g_strdup_printf("%s.server%s", prefix, filter); if (temp == NULL) { mc_error("Fail to make interface_name"); |