summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>2014-11-03 11:19:07 +0100
committerJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>2014-12-05 14:09:35 +0100
commit0e0374b7ed2cd696418ba1c946afeaaa991e29f8 (patch)
tree45dcd675920e649ab2fe077fb9395b20bfad6361 /src
parentf0be21988c9b0a4d165d386f8062a4bf2f5b095b (diff)
downloadlibmedia-thumbnail-0e0374b7ed2cd696418ba1c946afeaaa991e29f8.tar.gz
libmedia-thumbnail-0e0374b7ed2cd696418ba1c946afeaaa991e29f8.tar.bz2
libmedia-thumbnail-0e0374b7ed2cd696418ba1c946afeaaa991e29f8.zip
Use connected socket to communicate with CAPI
Add credential option to get user UID from CAPI Bug-Tizen: TC-1598 Change-Id: Ib9bf7164a82766b29c2e13868e63d6bca64ea3c4 Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ipc/media-thumb-ipc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ipc/media-thumb-ipc.c b/src/ipc/media-thumb-ipc.c
index b8ec1a5..080a817 100755
--- a/src/ipc/media-thumb-ipc.c
+++ b/src/ipc/media-thumb-ipc.c
@@ -164,6 +164,7 @@ int __media_thumb_check_req_queue(const char *path)
{
int req_len = 0, i;
+ if (g_request_queue == NULL) return MEDIA_THUMB_ERROR_NONE;
req_len = g_queue_get_length(g_request_queue);
// thumb_dbg("Queue length : %d", req_len);
@@ -776,7 +777,7 @@ _media_thumb_request_async(int msg_type, media_thumb_type thumb_type, const char
#ifdef _USE_MEDIA_UTIL_
#ifdef _USE_UDS_SOCKET_
- strcpy(serv_addr.sun_path, "/tmp/media_ipc_thumbcreator.dat");
+ strcpy(serv_addr.sun_path, "/var/run/media-server/media_ipc_thumbcreator.socket");
#elif defined(_USE_UDS_SOCKET_TCP_)
strcpy(serv_addr.sun_path, "/tmp/media_ipc_thumbcreator.dat");
#else