summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaekyu Park <jk7744.park@samsung.com>2016-05-27 17:05:33 +0900
committerJaekyu Park <jk7744.park@samsung.com>2016-05-27 17:05:33 +0900
commit8a1bf01c6fa43a5347c23284a6dc33114dd71df8 (patch)
tree031a3dde518b40dd6a0172649408260a97ba924a
parentf0cd23b812d3a86d776948b74ff8b5b90d546ec2 (diff)
downloadlibmedia-thumbnail-accepted/tizen_2.4_mobile.tar.gz
libmedia-thumbnail-accepted/tizen_2.4_mobile.tar.bz2
libmedia-thumbnail-accepted/tizen_2.4_mobile.zip
-rwxr-xr-xpackaging/libmedia-thumbnail.spec2
-rwxr-xr-xsrc/ipc/media-thumb-ipc.c14
2 files changed, 13 insertions, 3 deletions
diff --git a/packaging/libmedia-thumbnail.spec b/packaging/libmedia-thumbnail.spec
index b59291b..0e29905 100755
--- a/packaging/libmedia-thumbnail.spec
+++ b/packaging/libmedia-thumbnail.spec
@@ -1,6 +1,6 @@
Name: libmedia-thumbnail
Summary: Media thumbnail service library for multimedia applications.
-Version: 0.1.125
+Version: 0.1.126
Release: 1
Group: utils
License: Apache-2.0 and PD
diff --git a/src/ipc/media-thumb-ipc.c b/src/ipc/media-thumb-ipc.c
index a98682c..9601aa1 100755
--- a/src/ipc/media-thumb-ipc.c
+++ b/src/ipc/media-thumb-ipc.c
@@ -816,9 +816,14 @@ int _media_thumb_send_request() {
/* Connecting to the thumbnail server */
if (connect(sock, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) < 0) {
thumb_stderror("connect");
+ if (errno == EACCES)
+ err = MS_MEDIA_ERR_PERMISSION_DENIED;
+ else
+ err = MS_MEDIA_ERR_SOCKET_CONN;
+
g_io_channel_shutdown(channel, TRUE, NULL);
g_io_channel_unref(channel);
- return MS_MEDIA_ERR_SOCKET_CONN;
+ return err;
}
req_manager = (thumbReq *)g_queue_pop_head(g_manage_queue);
GSource *source = NULL;
@@ -917,9 +922,14 @@ int _media_thumb_raw_data_send_request() {
/* Connecting to the thumbnail server */
if (connect(sock, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) < 0) {
thumb_stderror("connect error");
+ if (errno == EACCES)
+ err = MS_MEDIA_ERR_PERMISSION_DENIED;
+ else
+ err = MS_MEDIA_ERR_SOCKET_CONN;
+
g_io_channel_shutdown(channel, TRUE, NULL);
g_io_channel_unref(channel);
- return MS_MEDIA_ERR_SOCKET_CONN;
+ return err;
}
req_manager = (thumbRawReq *)g_queue_pop_head(g_manage_raw_queue);