summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhj kim <backto.kim@samsung.com>2018-05-25 16:14:06 +0900
committerhj kim <backto.kim@samsung.com>2018-05-25 16:14:06 +0900
commit8cb07e8bb2988ddb5b0137dcff8b0124eaa61467 (patch)
treeee026816aa497a97e750adf33bcdea5090cc85b7
parent08d639e60bc6f449331020358c98f1fdd1e92bd7 (diff)
downloadmedia-controller-8cb07e8bb2988ddb5b0137dcff8b0124eaa61467.tar.gz
media-controller-8cb07e8bb2988ddb5b0137dcff8b0124eaa61467.tar.bz2
media-controller-8cb07e8bb2988ddb5b0137dcff8b0124eaa61467.zip
restrict making multiple handlessubmit/tizen/20180528.002901
Change-Id: I0c9c7bbe2f3c06ae6efc44bb40bcfdd5e6bafc30
-rwxr-xr-xinclude/media_controller_client.h2
-rwxr-xr-xinclude/media_controller_server.h2
-rwxr-xr-xpackaging/capi-media-controller.spec2
-rwxr-xr-xsvc/media_controller_svc.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/include/media_controller_client.h b/include/media_controller_client.h
index 199f09b..5fff6f8 100755
--- a/include/media_controller_client.h
+++ b/include/media_controller_client.h
@@ -194,7 +194,7 @@ typedef void (*mc_playlist_updated_cb)(const char *server_name, mc_playlist_upda
* @privlevel public
* @privilege %http://tizen.org/privilege/mediacontroller.client
*
- * @remarks The @a client should be released using @c mc_client_destroy().
+ * @remarks The @a client should be released using @c mc_client_destroy(). And you can create only one client handle for each process.
*
* @param[out] client The handle to the media controller client
* @return @c 0 on success,
diff --git a/include/media_controller_server.h b/include/media_controller_server.h
index e33240a..613627b 100755
--- a/include/media_controller_server.h
+++ b/include/media_controller_server.h
@@ -160,7 +160,7 @@ typedef void (*mc_server_playlist_command_received_cb)(const char* client_name,
* @privlevel public
* @privilege %http://tizen.org/privilege/mediacontroller.server
*
- * @remarks The @a server should be released using mc_server_destroy().
+ * @remarks The @a server should be released using mc_server_destroy(). And you can create only one server handle for each process.
*
* @param[out] server The handle to media controller server
* @return @c 0 on success,
diff --git a/packaging/capi-media-controller.spec b/packaging/capi-media-controller.spec
index 376d1c4..14e7450 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.57
+Version: 0.1.58
Release: 1
Group: Multimedia/API
License: Apache-2.0
diff --git a/svc/media_controller_svc.c b/svc/media_controller_svc.c
index ae2ff9a..b6aedb8 100755
--- a/svc/media_controller_svc.c
+++ b/svc/media_controller_svc.c
@@ -281,7 +281,7 @@ static int _mc_service_add_connection(GList **connected_list, mc_comm_msg_s *req
if (*connected_list != NULL && _mc_service_is_exist_pid(*connected_list, request_msg->pid, request_msg->type)) {
mc_error("[No-error] connected but do not increase counter [%d]", g_connection_cnt);
- return MEDIA_CONTROLLER_ERROR_NONE;
+ return MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER;
}
data = (mc_list_data_set_t *)calloc(1, sizeof(mc_list_data_set_t));